about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/StateEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Core/StateEvent.cs')
-rw-r--r--MatrixRoomUtils.Core/StateEvent.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MatrixRoomUtils.Core/StateEvent.cs b/MatrixRoomUtils.Core/StateEvent.cs
index f2c8701..18b4632 100644
--- a/MatrixRoomUtils.Core/StateEvent.cs
+++ b/MatrixRoomUtils.Core/StateEvent.cs
@@ -29,7 +29,7 @@ public class StateEvent {
         get => _type;
         set {
             _type = value;
-            if (RawContent != null && this is StateEventResponse stateEventResponse) {
+            if (RawContent is not null && this is StateEventResponse stateEventResponse) {
                 if (File.Exists($"unknown_state_events/{Type}/{stateEventResponse.EventId}.json")) return;
                 var x = GetType.Name;
             }
@@ -46,7 +46,7 @@ public class StateEvent {
         get => _rawContent;
         set {
             _rawContent = value;
-            if (Type != null && this is StateEventResponse stateEventResponse) {
+            if (Type is not null && this is StateEventResponse stateEventResponse) {
                 if (File.Exists($"unknown_state_events/{Type}/{stateEventResponse.EventId}.json")) return;
                 var x = GetType.Name;
             }