We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abb528f commit 19a73bbCopy full SHA for 19a73bb
dotnet/src/webdriver/BiDi/Communication/Json/Internal/JsonExtensions.cs
@@ -23,7 +23,7 @@ namespace OpenQA.Selenium.BiDi.Communication.Json.Internal;
23
24
internal static class JsonExtensions
25
{
26
- public static string? GetDiscriminator(this ref Utf8JsonReader reader, string name)
+ public static string GetDiscriminator(this ref Utf8JsonReader reader, string name)
27
28
Utf8JsonReader readerClone = reader;
29
@@ -48,6 +48,6 @@ internal static class JsonExtensions
48
readerClone.Read();
49
}
50
51
- return discriminator;
+ return discriminator ?? throw new JsonException($"Couldn't determine '{name}' descriminator.");
52
53
0 commit comments