Skip to content

Commit

Permalink
Resolve code indentation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Browne committed Dec 14, 2020
1 parent 45eafe2 commit 0433efe
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Sources/NWWebSocket/Model/Client/NWWebSocket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -371,19 +371,19 @@ open class NWWebSocket: WebSocketConnection {
}

/// Determine if a Network error represents an unexpected disconnection event.
/// - Parameter error: The `NWError` to inspect.
/// - Returns: `true` if the error represents an unexpected disconnection event.
private func isDisconnectionNWError(_ error: NWError) -> Bool {
if case let .posix(code) = error,
code == .ETIMEDOUT
|| code == .ENOTCONN
|| code == .ECANCELED
|| code == .ENETDOWN
|| code == .ECONNABORTED {
return true
} else {
return false
}
/// - Parameter error: The `NWError` to inspect.
/// - Returns: `true` if the error represents an unexpected disconnection event.
private func isDisconnectionNWError(_ error: NWError) -> Bool {
if case let .posix(code) = error,
code == .ETIMEDOUT
|| code == .ENOTCONN
|| code == .ECANCELED
|| code == .ENETDOWN
|| code == .ECONNABORTED {
return true
} else {
return false
}
}
}

0 comments on commit 0433efe

Please sign in to comment.