Skip to content

Commit

Permalink
fix toInt
Browse files Browse the repository at this point in the history
  • Loading branch information
remy-bardou-lifeonair authored and joffrey-bion committed May 18, 2022
1 parent 63f2c03 commit b9f45dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ private fun NSError.toWebSocketHandshakeException(
urlResponse: NSURLResponse? = null
): WebSocketException {
val httpResponse = urlResponse as? NSHTTPURLResponse
val statusCode = httpResponse?.statusCode
val statusCode = httpResponse?.statusCode?.toInt()
return DarwinWebSocketHandshakeException(this, statusCode)
}

Expand Down

0 comments on commit b9f45dc

Please sign in to comment.