Skip to content

Commit

Permalink
Fixed query formatter for .NET Core 3.1 (#5239)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Jul 12, 2022
1 parent fd47b19 commit 5b0d249
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ private static void WritePathValue(Utf8JsonWriter writer, Path path)
writer.WriteEndObject();
}

#if NET5_0_OR_GREATER
private void WriteListResult(
Utf8JsonWriter writer,
ListResult list)
Expand All @@ -389,7 +388,6 @@ private static void WritePathValue(Utf8JsonWriter writer, Path path)

writer.WriteEndArray();
}
#endif

private void WriteList(
Utf8JsonWriter writer,
Expand Down Expand Up @@ -421,11 +419,10 @@ private static void WritePathValue(Utf8JsonWriter writer, Path path)
WriteObjectResult(writer, resultMap);
break;

#if NET5_0_OR_GREATER
case ListResult resultMapList:
WriteListResult(writer, resultMapList);
break;
#endif

case Dictionary<string, object?> dict:
WriteDictionary(writer, dict);
break;
Expand Down

0 comments on commit 5b0d249

Please sign in to comment.