address comments

This commit is contained in:
Pedro Piñera 2020-04-01 18:30:20 +02:00
parent 05882a52e0
commit 0218ec716c
2 changed files with 4 additions and 3 deletions

View File

@ -38,8 +38,9 @@ public final class CredentialsStore: CredentialsStoring {
public func delete(serverURL: URL) throws {
let keychain = self.keychain(serverURL: serverURL)
guard let account = keychain.allKeys().first else { return }
try keychain.remove(account)
try keychain.allKeys().forEach { account in
try keychain.remove(account)
}
}
// MARK: - Fileprivate

View File

@ -51,7 +51,7 @@ public final class HTTPRedirectListener: HTTPRedirectListening {
return HttpResponse.ok(.text(redirectMessage))
}
// If the user sends an interruption sinal by pressing CTRL+C, we stop the server.
// If the user sends an interruption signal by pressing CTRL+C, we stop the server.
Signals.trap(signals: [.int, .abrt]) { _ in runningServer!.stop() }
do {