aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-24 13:25:18 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-24 13:25:18 +0200
commit450a0a003d687ae16448734ebef25acfb17cdde4 (patch)
tree352f4e8965e6ae0da3596efcdc57f73b8461d495 /src/main/java/at/hannibal2/skyhanni/data/ApiDataLoader.kt
parent0b8066fcd9c3318723a29ffadeb7e2fbfeb0250e (diff)
downloadskyhanni-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.kt2
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