Skip to content

Commit

Permalink
Disable swiftlint warning when force-casting Connection/Blocking data
Browse files Browse the repository at this point in the history
  • Loading branch information
acb-mv committed Mar 21, 2024
1 parent d8af0af commit 4b58094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/PacketTunnelCore/Actor/State+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ extension State {
let .disconnecting(connState):
var associatedData: StateAssociatedData = connState
modifier(&associatedData)
// swiftlint:disable:next force_cast
self = self.replacingConnectionData(with: associatedData as! ConnectionData)

case let .error(blockedState):
var associatedData: StateAssociatedData = blockedState
modifier(&associatedData)
// swiftlint:disable:next force_cast
self = .error(associatedData as! BlockingData)

default:
Expand Down

0 comments on commit 4b58094

Please sign in to comment.