Enable SwiftLint rule 'multiline_literal_brackets' and fix all violations

This commit is contained in:
Danny Moesch 2020-07-05 00:25:34 +02:00 committed by Mingshen Sun
parent 776c813f94
commit 55e2cd7939
6 changed files with 78 additions and 46 deletions

View file

@ -162,8 +162,10 @@ class ExtensionViewController: UIViewController, UITableViewDataSource, UITableV
switch self.extensionAction {
case .findLogin:
let extensionItem = NSExtensionItem()
var returnDictionary = [OnePasswordExtensionKey.usernameKey: username,
OnePasswordExtensionKey.passwordKey: password]
var returnDictionary = [
OnePasswordExtensionKey.usernameKey: username,
OnePasswordExtensionKey.passwordKey: password,
]
if let totpPassword = decryptedPassword.currentOtp {
returnDictionary[OnePasswordExtensionKey.totpKey] = totpPassword
}