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

@ -70,7 +70,7 @@ class PasswordGeneratorTest: XCTestCase {
PasswordGenerator(flavor: .xkcd, length: 8, useSpecialSymbols: false),
PasswordGenerator(flavor: .xkcd, length: 1, useSpecialSymbols: false),
].forEach { generator in
XCTAssertEqual(generator.generate().split(whereSeparator: { "0123456789".contains($0) }).count, generator.limitedLength)
XCTAssertEqual(generator.generate().split { "0123456789".contains($0) }.count, generator.limitedLength)
}
}