Skip to content

Commit fed68a0

Browse files
committed
Remove redundancies
1 parent f9608bd commit fed68a0

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

ios/MullvadVPN/TunnelManager/SetAccountOperation.swift

-8
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ enum SetAccountAction {
3535
case .delete: "Delete account"
3636
}
3737
}
38-
39-
// true if this action results in an account being set if successful
40-
var isConstructive: Bool {
41-
switch self {
42-
case .unset, .delete: false
43-
default: true
44-
}
45-
}
4638
}
4739

4840
class SetAccountOperation: ResultOperation<StoredAccountData?> {

ios/MullvadVPN/TunnelManager/TunnelManager.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ final class TunnelManager: StorePaymentObserver {
6262

6363
private var privateKeyRotationTimer: DispatchSourceTimer?
6464
public private(set) var isRunningPeriodicPrivateKeyRotation = false
65-
public private(set) var nextKeyRotationDate: Date? = nil
65+
public private(set) var nextKeyRotationDate: Date?
6666

6767
private var tunnelStatusPollTimer: DispatchSourceTimer?
6868
private var isPolling = false

0 commit comments

Comments
 (0)