Enable SwiftLint rule 'closure_parameter_position' and fix all violations
This commit is contained in:
parent
5299ca25d7
commit
fdca54a0ab
2 changed files with 2 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ whitelist_rules:
|
||||||
- closing_brace
|
- closing_brace
|
||||||
- closure_body_length
|
- closure_body_length
|
||||||
- closure_end_indentation
|
- closure_end_indentation
|
||||||
# - closure_parameter_position
|
- closure_parameter_position
|
||||||
- closure_spacing
|
- closure_spacing
|
||||||
- collection_alignment
|
- collection_alignment
|
||||||
- colon
|
- colon
|
||||||
|
|
|
||||||
|
|
@ -141,8 +141,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||||
}
|
}
|
||||||
|
|
||||||
private func setupOneTimePasswordAutoRefresh() {
|
private func setupOneTimePasswordAutoRefresh() {
|
||||||
Timer.scheduledTimer(withTimeInterval: 1, repeats: true) {
|
Timer.scheduledTimer(withTimeInterval: 1, repeats: true) { [weak self] _ in
|
||||||
[weak self] _ in
|
|
||||||
// bail out of the timer code if the object has been freed
|
// bail out of the timer code if the object has been freed
|
||||||
guard let strongSelf = self,
|
guard let strongSelf = self,
|
||||||
let otpType = strongSelf.password?.otpType,
|
let otpType = strongSelf.password?.otpType,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue