address comments
This commit is contained in:
parent
05882a52e0
commit
0218ec716c
|
@ -38,8 +38,9 @@ public final class CredentialsStore: CredentialsStoring {
|
||||||
|
|
||||||
public func delete(serverURL: URL) throws {
|
public func delete(serverURL: URL) throws {
|
||||||
let keychain = self.keychain(serverURL: serverURL)
|
let keychain = self.keychain(serverURL: serverURL)
|
||||||
guard let account = keychain.allKeys().first else { return }
|
try keychain.allKeys().forEach { account in
|
||||||
try keychain.remove(account)
|
try keychain.remove(account)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Fileprivate
|
// MARK: - Fileprivate
|
||||||
|
|
|
@ -51,7 +51,7 @@ public final class HTTPRedirectListener: HTTPRedirectListening {
|
||||||
return HttpResponse.ok(.text(redirectMessage))
|
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() }
|
Signals.trap(signals: [.int, .abrt]) { _ in runningServer!.stop() }
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in New Issue