Skip to content

Commit 37a1ec9

Browse files
Fix deprecated API call
1 parent f08e7aa commit 37a1ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/gg/obsidian/discoursegroupsync/UUIDHelper.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object UUIDHelper {
1717
val response = httpClient.newCall(request).execute()
1818
val body = JSONValue.parse(response.body().string()) as JSONObject
1919

20-
if (body.containsKey("error")) {
20+
if (body.containsKeyRaw("error")) {
2121
return ""
2222
}
2323

0 commit comments

Comments
 (0)