diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2023-08-21 17:11:30 +0200 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2023-08-21 17:11:44 +0200 |
| commit | 9495c040ea30a5954f795708b07faab041b8234e (patch) | |
| tree | 7f4f83812f86e43c3081a30e157af5954d4b8ed0 /ios | |
| parent | 108c49e129145ecf0cd28cf5cf5ace4b3963fbac (diff) | |
| download | mullvadvpn-9495c040ea30a5954f795708b07faab041b8234e.tar.xz mullvadvpn-9495c040ea30a5954f795708b07faab041b8234e.zip | |
Fix nsobject_prefer_isequal swiftlint violation
Diffstat (limited to 'ios')
| -rw-r--r-- | ios/MullvadVPN/SimulatorTunnelProvider/SimulatorTunnelProvider.swift | 5 |
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 } } |
