Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjl-mux committed Sep 6, 2024
1 parent 669cb64 commit 654916b
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions Sources/MuxPlayerSwift/FairPlay/ContentKeySessionDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,30 +58,29 @@ class ContentKeySessionDelegate<SessionManager: FairPlayStreamingSessionCredenti
"CK Request Failed Error Localized Description: \(err.localizedDescription)"
)

if let error = err as? NSError {
if let localizedFailureReason = error.localizedFailureReason {
logger.debug(
"CK Request Failed Error Localized Failure Reason: \(localizedFailureReason))"
)
}

let error = err as NSError
if let localizedFailureReason = error.localizedFailureReason {
logger.debug(
"CK Request Failed Error Code: \(error.code)"
"CK Request Failed Error Localized Failure Reason: \(localizedFailureReason))"
)
}

logger.debug(
"CK Request Failed Error Code: \(error.code)"
)

logger.debug(
"CK Request Failed Error User Info: \(error.userInfo)"
)

if let underlyingError = error.userInfo[NSUnderlyingErrorKey] as? NSError {
logger.debug(
"CK Request Failed Error User Info: \(error.userInfo)"
"CK Request Failed Underlying Error Localized Description: \(underlyingError.localizedDescription)"
)

if let underlyingError = error.userInfo[NSUnderlyingErrorKey] as? NSError {
logger.debug(
"CK Request Failed Underlying Error Localized Description: \(underlyingError.localizedDescription)"
)

logger.debug(
"CK Request Failed Underlying Error Code: \(underlyingError.code)"
)
}
logger.debug(
"CK Request Failed Underlying Error Code: \(underlyingError.code)"
)
}
}

Expand Down

0 comments on commit 654916b

Please sign in to comment.