Skip to content

Commit 9cd5363

Browse files
committed
release 1.2.0
1 parent c546d31 commit 9cd5363

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

MojangAPI/MojangAPI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Description>.NET Library for Mojang API, Mojang Authentication and Microsoft Xbox Authentication</Description>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1010
<RepositoryUrl>https://github.com/AlphaBs/MojangAPI</RepositoryUrl>
11-
<Version>1.1.0</Version>
11+
<Version>1.2.0</Version>
1212
<PackageTags>mojang minecraft api</PackageTags>
1313
</PropertyGroup>
1414

MojangAPI/MojangException.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ public static MojangException ParseFromResponse(string responseBody, int statusC
4444

4545
string? error = null;
4646
string? errorMessage = null;
47-
if (root.TryGetProperty("error", out var errorProp)
48-
&& errorProp.ValueKind == JsonValueKind.String)
47+
if (root.TryGetProperty("error", out var errorProp) &&
48+
errorProp.ValueKind == JsonValueKind.String)
4949
error = errorProp.GetString();
50-
if (root.TryGetProperty("errorMessage", out var errorMessageProp)
51-
&& errorMessageProp.ValueKind == JsonValueKind.String)
50+
if (root.TryGetProperty("errorMessage", out var errorMessageProp) &&
51+
errorMessageProp.ValueKind == JsonValueKind.String)
5252
errorMessage = errorMessageProp.GetString();
5353

5454
if (string.IsNullOrEmpty(error) && string.IsNullOrEmpty(errorMessage))

0 commit comments

Comments
 (0)