mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Storage - Use nullable reference types
Core - Fix build warnings
This commit is contained in:
1 parent
f0e9581fe1
commit
248d4c8e18
65 files changed
+318
-159
No files matched your search
@@ -65,7 +65,7 @@ public class LayerBrushDescriptor
|
||||
BaseLayerBrush brush = (BaseLayerBrush) Provider.Plugin.Resolve(LayerBrushType);
|
||||
brush.Layer = layer;
|
||||
brush.Descriptor = this;
|
||||
brush.LayerBrushEntity = entity ?? new LayerBrushEntity {ProviderId = Provider.Id, BrushType = LayerBrushType.FullName};
|
||||
brush.LayerBrushEntity = entity ?? new LayerBrushEntity {ProviderId = Provider.Id, BrushType = LayerBrushType.FullName ?? throw new InvalidOperationException()};
|
||||
|
||||
brush.Initialize();
|
||||
return brush;
|
||||
|
||||
Reference in new issue
Block a user