Skip to content

Commit

Permalink
Add the guard for apiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
YuigaWada committed May 17, 2020
1 parent 70e32c7 commit 223c898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MisskeyKit/APIs/Wrapper/HTTP/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ extension MisskeyKit {
}

public func getAPIKey()-> String? {
if let apiKey = apiKey {
if let apiKey = apiKey, !apiKey.isEmpty {
return apiKey
}
else {
Expand Down

0 comments on commit 223c898

Please sign in to comment.