From 240addd048533f921dac56d5fb9aad2b857f5714 Mon Sep 17 00:00:00 2001 From: Havunen Date: Fri, 18 Oct 2024 21:25:35 +0300 Subject: [PATCH] updated deps --- .../SystemTextJsonPatch.Benchmark.csproj | 2 +- .../Converters/JsonPatchDocumentConverterFactory.cs | 6 ++++-- SystemTextJsonPatch/SystemTextJsonPatch.csproj | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SystemTextJsonPatch.Benchmark/SystemTextJsonPatch.Benchmark.csproj b/SystemTextJsonPatch.Benchmark/SystemTextJsonPatch.Benchmark.csproj index fb5d473..c9aee81 100644 --- a/SystemTextJsonPatch.Benchmark/SystemTextJsonPatch.Benchmark.csproj +++ b/SystemTextJsonPatch.Benchmark/SystemTextJsonPatch.Benchmark.csproj @@ -12,7 +12,7 @@ - + diff --git a/SystemTextJsonPatch/Converters/JsonPatchDocumentConverterFactory.cs b/SystemTextJsonPatch/Converters/JsonPatchDocumentConverterFactory.cs index 2f763c3..40086da 100644 --- a/SystemTextJsonPatch/Converters/JsonPatchDocumentConverterFactory.cs +++ b/SystemTextJsonPatch/Converters/JsonPatchDocumentConverterFactory.cs @@ -25,8 +25,10 @@ public sealed override bool CanConvert(Type typeToConvert) } - return (JsonConverter)Activator.CreateInstance(typeof(GenericJsonPatchDocumentConverter<>).MakeGenericType(typeToConvert.GenericTypeArguments[0]), - Array.Empty())!; + return (JsonConverter)Activator.CreateInstance( + typeof(GenericJsonPatchDocumentConverter<>).MakeGenericType(typeToConvert.GenericTypeArguments[0]), + [] + )!; } } } diff --git a/SystemTextJsonPatch/SystemTextJsonPatch.csproj b/SystemTextJsonPatch/SystemTextJsonPatch.csproj index 6d74009..fe677bf 100644 --- a/SystemTextJsonPatch/SystemTextJsonPatch.csproj +++ b/SystemTextJsonPatch/SystemTextJsonPatch.csproj @@ -36,7 +36,7 @@ - +