Enable SwiftLint rule 'trailing_closure' and fix all violations
This commit is contained in:
parent
937019d6e8
commit
0317f5a83b
5 changed files with 6 additions and 6 deletions
|
|
@ -63,11 +63,11 @@ struct GopenPGPInterface: PGPInterface {
|
|||
}
|
||||
|
||||
func containsPublicKey(with keyID: String) -> Bool {
|
||||
publicKeys.keys.contains(where: { key in key.hasSuffix(keyID.lowercased()) })
|
||||
publicKeys.keys.contains { key in key.hasSuffix(keyID.lowercased()) }
|
||||
}
|
||||
|
||||
func containsPrivateKey(with keyID: String) -> Bool {
|
||||
privateKeys.keys.contains(where: { key in key.hasSuffix(keyID.lowercased()) })
|
||||
privateKeys.keys.contains { key in key.hasSuffix(keyID.lowercased()) }
|
||||
}
|
||||
|
||||
func decrypt(encryptedData: Data, keyID: String, passphrase: String) throws -> Data? {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue