@@ -243,14 +243,14 @@ internal static IReadOnlyList<FileReferenceInfo> WriteFilesMap(
243
243
244
244
writer . WritePropertyName ( name ) ;
245
245
writer . WriteStartArray ( ) ;
246
-
246
+
247
247
foreach ( var path in item . Value )
248
248
{
249
249
writer . WriteStringValue ( path . ToString ( operation ) ) ;
250
250
}
251
251
252
252
writer . WriteEndArray ( ) ;
253
-
253
+
254
254
index ++ ;
255
255
}
256
256
@@ -259,7 +259,7 @@ internal static IReadOnlyList<FileReferenceInfo> WriteFilesMap(
259
259
return fileInfos ;
260
260
}
261
261
}
262
-
262
+
263
263
if ( operationRequest . Variables is not null )
264
264
{
265
265
Dictionary < FileReference , FilePath [ ] > ? files = null ;
@@ -279,7 +279,7 @@ internal static IReadOnlyList<FileReferenceInfo> WriteFilesMap(
279
279
280
280
writer . WritePropertyName ( name ) ;
281
281
writer . WriteStartArray ( ) ;
282
-
282
+
283
283
foreach ( var path in item . Value )
284
284
{
285
285
writer . WriteStringValue ( path . ToString ( operation ) ) ;
@@ -445,14 +445,14 @@ protected FilePath(FilePath? parent)
445
445
446
446
public override string ToString ( )
447
447
=> ToString ( null ) ;
448
-
448
+
449
449
public string ToString ( int ? operation )
450
450
{
451
451
var sb = new StringBuilder ( ) ;
452
452
var current = this ;
453
453
var first = true ;
454
454
455
- while ( current is not RootFilePath )
455
+ while ( current is not RootFilePath and not null )
456
456
{
457
457
if ( current is NameFilePath name )
458
458
{
@@ -515,4 +515,4 @@ public IndexFilePath(FilePath? parent, int index) : base(parent)
515
515
516
516
public int Index { get ; }
517
517
}
518
- }
518
+ }
0 commit comments