Enable SwiftLint rule 'joined_default_parameter' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-04 23:33:51 +02:00 committed by Mingshen Sun
parent 8861aaa7e1
commit fb01d6bdf9
3 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ whitelist_rules:
# - indentation_width
- inert_defer
- is_disjoint
# - joined_default_parameter
- joined_default_parameter
- large_tuple
- last_where
- leading_whitespace

View file

@ -113,7 +113,7 @@ class PGPKeyArmorImportTableViewController: AutoCellHeightUITableViewController,
// MARK: - QRScannerControllerDelegate Methods
func handleScannedOutput(line _: String) {
let key = scanned.segments.joined(separator: "")
let key = scanned.segments.joined()
switch scanned.keyType {
case .publicKey:
armorPublicKeyTextView.text += key

View file

@ -91,7 +91,7 @@ class SSHKeyArmorImportTableViewController: AutoCellHeightUITableViewController,
// MARK: - QRScannerControllerDelegate Methods
func handleScannedOutput(line _: String) {
armorPrivateKeyTextView.text = scanned.segments.joined(separator: "")
armorPrivateKeyTextView.text = scanned.segments.joined()
}
override func prepare(for segue: UIStoryboardSegue, sender _: Any?) {