Enable SwiftLint rule 'vertical_whitespace_closing_braces' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-05 23:45:08 +02:00 committed by Mingshen Sun
parent 78be3dabe7
commit c5e88d82c9
2 changed files with 1 additions and 3 deletions

View file

@ -189,7 +189,7 @@ whitelist_rules:
- vertical_parameter_alignment_on_call
- vertical_whitespace
# - vertical_whitespace_between_cases # Additional whitespace not needed because of visible indentation.
# - vertical_whitespace_closing_braces
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
- void_return
# - weak_delegate

View file

@ -81,7 +81,6 @@ class QRScannerController: UIViewController, AVCaptureMetadataOutputObjectsDeleg
view.addSubview(qrCodeFrameView)
view.bringSubviewToFront(qrCodeFrameView)
}
} catch {
scannerOutput.text = error.localizedDescription
}
@ -121,7 +120,6 @@ class QRScannerController: UIViewController, AVCaptureMetadataOutputObjectsDeleg
} else {
scannerOutput.text = "NoStringValue".localize()
}
} else {
qrCodeFrameView?.frame = CGRect.zero
scannerOutput.text = "NoQrCodeDetected.".localize()