Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vincetran committed Jul 1, 2024
1 parent d776d4b commit d4ba9e2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,12 @@ internal class LivenessWebSocket(
}

// If challengeType hasn't been initialized by this point it's because server sent an
// unsupported challenge type so return an error to the client.
// unsupported challenge type so return an error to the client and close the web socket.
val resolvedChallengeType = challengeType
if (resolvedChallengeType == null) {
webSocketError = FaceLivenessUnsupportedChallengeTypeException()
destroy(UNSUPPORTED_CHALLENGE_CLOSURE_STATUS_CODE)
} else {
// send non-null challenge Type
onSessionResponseReceived.accept(
SessionResponse(
response.serverSessionInformationEvent.sessionInformation,
Expand Down

0 comments on commit d4ba9e2

Please sign in to comment.