Enable SwiftLint rule 'joined_default_parameter' and fix all violations
This commit is contained in:
parent
8861aaa7e1
commit
fb01d6bdf9
3 changed files with 3 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ whitelist_rules:
|
|||
# - indentation_width
|
||||
- inert_defer
|
||||
- is_disjoint
|
||||
# - joined_default_parameter
|
||||
- joined_default_parameter
|
||||
- large_tuple
|
||||
- last_where
|
||||
- leading_whitespace
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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?) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue