diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-24 13:25:18 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-07-24 13:25:18 +0200 |
commit | 450a0a003d687ae16448734ebef25acfb17cdde4 (patch) | |
tree | 352f4e8965e6ae0da3596efcdc57f73b8461d495 /src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt | |
parent | 0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e (diff) | |
download | skyhanni-450a0a003d687ae16448734ebef25acfb17cdde4.tar.gz skyhanni-450a0a003d687ae16448734ebef25acfb17cdde4.tar.bz2 skyhanni-450a0a003d687ae16448734ebef25acfb17cdde4.zip |
Fixed irrelevant spelling stuff
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt b/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt index 87cfdcdc6..54a914e72 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt @@ -46,7 +46,7 @@ class ApiDataLoader { val jsonObject = withContext(Dispatchers.IO) { APIUtil.getJSONResponse(url) } if (jsonObject["success"]?.asBoolean == false) { - if (jsonObject["throttle"]?.asBoolean == true) return true // 429 Too Many Requests does not make an invalid key. + if (jsonObject["throttle"]?.asBoolean == true) return true // 429 Too Many Requests doesn't make an invalid key. val cause = jsonObject["cause"].asString if (cause == "Invalid API key") { return false |