summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2023-08-21 17:57:21 +0200
committerAndrej Mihajlov <and@mullvad.net>2023-08-21 17:57:21 +0200
commit2ea1efff6e15f61e14ae8b63e07124080c6db4de (patch)
tree7f4f83812f86e43c3081a30e157af5954d4b8ed0
parent108c49e129145ecf0cd28cf5cf5ace4b3963fbac (diff)
parent9495c040ea30a5954f795708b07faab041b8234e (diff)
downloadmullvadvpn-2ea1efff6e15f61e14ae8b63e07124080c6db4de.tar.xz
mullvadvpn-2ea1efff6e15f61e14ae8b63e07124080c6db4de.zip
Merge branch 'fix-swiftlint-warning-nsobject_prefer_isequal-ios-264'
-rw-r--r--ios/MullvadVPN/SimulatorTunnelProvider/SimulatorTunnelProvider.swift5
1 files changed, 3 insertions, 2 deletions
diff --git a/ios/MullvadVPN/SimulatorTunnelProvider/SimulatorTunnelProvider.swift b/ios/MullvadVPN/SimulatorTunnelProvider/SimulatorTunnelProvider.swift
index 79b5f03b0e..637e0ad5f3 100644
--- a/ios/MullvadVPN/SimulatorTunnelProvider/SimulatorTunnelProvider.swift
+++ b/ios/MullvadVPN/SimulatorTunnelProvider/SimulatorTunnelProvider.swift
@@ -417,8 +417,9 @@ final class SimulatorTunnelProviderManager: NSObject, VPNTunnelProviderManagerPr
completionHandler?(error)
}
- static func == (lhs: SimulatorTunnelProviderManager, rhs: SimulatorTunnelProviderManager) -> Bool {
- lhs.identifier == rhs.identifier
+ override func isEqual(_ object: Any?) -> Bool {
+ guard let other = object as? Self else { return false }
+ return self.identifier == other.identifier
}
}