Enable SwiftLint rule 'closure_parameter_position' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-04 21:55:23 +02:00 committed by Mingshen Sun
parent 5299ca25d7
commit fdca54a0ab
2 changed files with 2 additions and 3 deletions

View file

@ -14,7 +14,7 @@ whitelist_rules:
- closing_brace
- closure_body_length
- closure_end_indentation
# - closure_parameter_position
- closure_parameter_position
- closure_spacing
- collection_alignment
- colon

View file

@ -141,8 +141,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
}
private func setupOneTimePasswordAutoRefresh() {
Timer.scheduledTimer(withTimeInterval: 1, repeats: true) {
[weak self] _ in
Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { [weak self] _ in
// bail out of the timer code if the object has been freed
guard let strongSelf = self,
let otpType = strongSelf.password?.otpType,