diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index 9eb9fad6c8..57e182e997 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "jetbrains.resharper.globaltools": { - "version": "2026.1.4", + "version": "2026.2.0", "commands": [ "jb" ], diff --git a/JsonApiDotNetCore.slnx.DotSettings b/JsonApiDotNetCore.slnx.DotSettings index 8c39c0abcc..3429a9d6a1 100644 --- a/JsonApiDotNetCore.slnx.DotSettings +++ b/JsonApiDotNetCore.slnx.DotSettings @@ -605,6 +605,7 @@ True True True + True True Replace argument null check using throw expression with ArgumentNullException.ThrowIfNull True diff --git a/test/TestBuildingBlocks/JsonApiStringConverter.cs b/test/TestBuildingBlocks/JsonApiStringConverter.cs index 9bf008af4b..5bedbcdbfc 100644 --- a/test/TestBuildingBlocks/JsonApiStringConverter.cs +++ b/test/TestBuildingBlocks/JsonApiStringConverter.cs @@ -9,7 +9,7 @@ public static string ExtractErrorId(string responseBody) try { using JsonDocument document = JsonDocument.Parse(responseBody); - return document.RootElement.GetProperty("errors").EnumerateArray().Single()!.GetProperty("id").GetString()!; + return document.RootElement.GetProperty("errors").EnumerateArray().Single().GetProperty("id").GetString()!; } catch (Exception exception) {