@@ -167,7 +167,7 @@ private static ICodec GetCodec(string encoding, int encoding_version)
167167
168168 var codecConstructor = codec_type . GetConstructor ( Type . EmptyTypes ) ;
169169
170- if ( codecConstructor is null )
170+ if ( codecConstructor is null )
171171 {
172172 throw new InvalidOperationException ( "Failed to get codec constructor." ) ;
173173 }
@@ -310,9 +310,9 @@ public static Datamodel Load<T>(string path, ReflectionParams? reflectionParams
310310 private static Datamodel Load_Internal < T > ( Stream stream , Assembly callingAssembly , DeferredMode defer_mode = DeferredMode . Automatic , ReflectionParams ? reflectionParams = null )
311311 where T : Element
312312 {
313- reflectionParams ??= new ( ) ;
313+ reflectionParams ??= new ( ) ;
314314
315- if ( typeof ( T ) == typeof ( Element ) )
315+ if ( typeof ( T ) == typeof ( Element ) )
316316 {
317317 reflectionParams . AttemptReflection = false ;
318318 }
@@ -369,7 +369,7 @@ private static Datamodel Load_Internal<T>(Stream stream, Assembly callingAssembl
369369 {
370370 result = StubRequest ( id ) ;
371371
372- if ( result is null )
372+ if ( result is null )
373373 {
374374 throw new InvalidDataException ( "Stub request failed, result was null" ) ;
375375 }
@@ -464,7 +464,7 @@ public string Format
464464 get => _Format ;
465465 set
466466 {
467- if ( value is null )
467+ if ( value is null )
468468 {
469469 throw new InvalidDataException ( "Format can not be null" ) ;
470470 }
@@ -499,7 +499,7 @@ public string Encoding
499499 get => _Encoding ;
500500 set
501501 {
502- if ( value is null )
502+ if ( value is null )
503503 {
504504 throw new InvalidDataException ( "Encoding can not be null" ) ;
505505 }
@@ -759,7 +759,7 @@ public ImportJob(ImportRecursionMode import_mode, ImportOverwriteMode overwrite_
759759 local_element = null ;
760760 }
761761
762- if ( local_element is null )
762+ if ( local_element is null )
763763 {
764764 return null ;
765765 }
@@ -779,7 +779,7 @@ public ImportJob(ImportRecursionMode import_mode, ImportOverwriteMode overwrite_
779779 var list = ( System . Collections . ICollection ) attr . Value ;
780780 var inner_type = GetArrayInnerType ( list . GetType ( ) ) ;
781781
782- if ( inner_type is null )
782+ if ( inner_type is null )
783783 {
784784 throw new InvalidOperationException ( "Failed to get inner_type while importing element" ) ;
785785 }
@@ -915,7 +915,7 @@ internal DestubException(ElementArray array, int index, Exception innerException
915915 : base ( "An exception occured while destubbing an array item." , innerException )
916916 {
917917 var arrayOwner = array . Owner ;
918- if ( arrayOwner is not null )
918+ if ( arrayOwner is not null )
919919 {
920920 Data . Add ( "Element" , ( ( Element ) arrayOwner ) . ID ) ;
921921 }
0 commit comments