From 37a1ec954c69c070c637a6c080417aa7f51265d3 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sun, 13 Dec 2015 22:06:57 -0600 Subject: [PATCH] Fix deprecated API call --- src/main/kotlin/gg/obsidian/discoursegroupsync/UUIDHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/obsidian/discoursegroupsync/UUIDHelper.kt b/src/main/kotlin/gg/obsidian/discoursegroupsync/UUIDHelper.kt index ca86c33..6bc7dd6 100644 --- a/src/main/kotlin/gg/obsidian/discoursegroupsync/UUIDHelper.kt +++ b/src/main/kotlin/gg/obsidian/discoursegroupsync/UUIDHelper.kt @@ -17,7 +17,7 @@ object UUIDHelper { val response = httpClient.newCall(request).execute() val body = JSONValue.parse(response.body().string()) as JSONObject - if (body.containsKey("error")) { + if (body.containsKeyRaw("error")) { return "" }