Fix a bug.

Previously, for a password, if we click "edit", do nothing, and save, there will be a new commit.
This commit is contained in:
Yishi Lin 2017-03-03 20:15:16 +08:00
parent f2edc2ffaa
commit 5c966c62d4

View file

@ -51,9 +51,9 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
}
var plainText = ""
if cellContents["additions"]! != "" {
plainText = "\(cellContents["password"]!)\n\(cellContents["additions"]!)\n"
plainText = "\(cellContents["password"]!)\n\(cellContents["additions"]!)"
} else {
plainText = "\(cellContents["password"]!)\n"
plainText = "\(cellContents["password"]!)"
}
password!.updatePassword(name: cellContents["name"]!, plainText: plainText)
}