From 223c898a3b1574700cbd8851f9a425c9807e4b96 Mon Sep 17 00:00:00 2001 From: YuigaWada Date: Sun, 17 May 2020 18:55:56 +0900 Subject: [PATCH] Add the guard for apiKey --- MisskeyKit/APIs/Wrapper/HTTP/Auth.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MisskeyKit/APIs/Wrapper/HTTP/Auth.swift b/MisskeyKit/APIs/Wrapper/HTTP/Auth.swift index a2397cd..25b099b 100644 --- a/MisskeyKit/APIs/Wrapper/HTTP/Auth.swift +++ b/MisskeyKit/APIs/Wrapper/HTTP/Auth.swift @@ -56,7 +56,7 @@ extension MisskeyKit { } public func getAPIKey()-> String? { - if let apiKey = apiKey { + if let apiKey = apiKey, !apiKey.isEmpty { return apiKey } else {