Enable SwiftLint rule 'trailing_closure' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-05 23:15:29 +02:00 committed by Mingshen Sun
parent 937019d6e8
commit 0317f5a83b
5 changed files with 6 additions and 6 deletions

View file

@ -130,7 +130,7 @@ public class Password {
private func getAdditionValue(withKey key: String, caseSensitive: Bool = false) -> String? {
let toLowercase = { (string: String) -> String in caseSensitive ? string : string.lowercased() }
return additions.first(where: { toLowercase($0.title) == toLowercase(key) })?.content
return additions.first { toLowercase($0.title) == toLowercase(key) }?.content
}
/// Set the OTP token if we are able to construct a valid one.