Browse Source

fix passcodeViewControllerLock

Marino Faggiana 6 years ago
parent
commit
c82f4a5cb2
1 changed files with 2 additions and 6 deletions
  1. 2 6
      iOSClient/Select/NCSelect.swift

+ 2 - 6
iOSClient/Select/NCSelect.swift

@@ -233,12 +233,8 @@ class NCSelect: UIViewController ,UICollectionViewDataSource, UICollectionViewDe
         return UInt(failedAttempts)
     }
     
-    func passcodeViewControllerLock(untilDate aViewController: BKPasscodeViewController!) -> Date! {
-        if lockUntilDate == nil {
-            return Date()
-        } else {
-            return lockUntilDate! as Date
-        }
+    func passcodeViewControllerLock(untilDate aViewController: BKPasscodeViewController!) -> Date? {
+        return lockUntilDate as Date?
     }
     
     @objc func passcodeViewCloseButtonPressed(_ sender: Any) {