Skip to content

Commit

Permalink
Fixed a bug that resulted in tests creating empty tokens in Keychain.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Apr 6, 2024
1 parent abb793f commit a7608ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CCMenu/Source/Miscellaneous/Keychain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Keychain {

func getToken(forService service: String) throws -> String? {
if service == "GitHub", let token = UserDefaults.active.string(forKey: "GitHubToken") {
return token
return token.isEmpty ? nil : token
}
let query: [String: Any] = [
kSecClass as String: kSecClassGenericPassword,
Expand Down
1 change: 1 addition & 0 deletions CCMenu/Source/Server Monitor/CCTrayFeedReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CCTrayFeedReader {
do {
// All pipelines have the same URL.
let request = try requestForFeed(feed: pipelines[0].feed)
debugPrint(Date(), "fetching", request.url ?? "")
try await fetchStatus(request: request)
} catch {
for i in 0..<pipelines.count {
Expand Down

0 comments on commit a7608ee

Please sign in to comment.