Procházet zdrojové kódy

fix passcodeViewControllerLock

Marino Faggiana před 6 roky
rodič
revize
c82f4a5cb2
1 změnil soubory, kde provedl 2 přidání a 6 odebrání
  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) {