Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
rampaa committed Dec 27, 2024
1 parent 5a31d6e commit 8de106e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JL.Core/Mining/Anki/AnkiUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static class AnkiUtils
string? resultString = response?.Result?.ToString() ?? null;

return resultString is not null
? JsonSerializer.Deserialize<bool>(resultString.AsSpan()[1..^1])
? JsonSerializer.Deserialize<bool>(resultString.AsSpan()[1..^1], Utils.s_jsoNotIgnoringNull)
: null;
}

Expand All @@ -51,7 +51,7 @@ public static class AnkiUtils
string? resultString = response?.Result?.ToString() ?? null;

return resultString is not null
? JsonSerializer.Deserialize<List<bool>>(resultString)
? JsonSerializer.Deserialize<List<bool>>(resultString, Utils.s_jsoNotIgnoringNull)
: null;
}
}

0 comments on commit 8de106e

Please sign in to comment.