Port to Swift 4

This commit is contained in:
Bob Sun 2017-10-09 22:14:48 -07:00
parent 25ab22acc7
commit f5f9fe505b
2 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@ class PasswordEditorTableViewController: UITableViewController, FillPasswordTabl
let minimumLength = lengthSetting?.min ?? 0
let maximumLength = lengthSetting?.max ?? 0
var defaultLength = lengthSetting?.def ?? 0
if let currentPasswordLength = (tableData[passwordSection][0][PasswordEditorCellKey.content] as? String)?.characters.count,
if let currentPasswordLength = (tableData[passwordSection][0][PasswordEditorCellKey.content] as? String)?.count,
currentPasswordLength >= minimumLength,
currentPasswordLength <= maximumLength {
defaultLength = currentPasswordLength