add brackets

This commit is contained in:
einhornimmond 2025-10-13 18:34:24 +02:00
parent 5dd337e96c
commit b995c329ed
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ export class AuthenticationResolver {
state = await findPendingCommunityHandshakeOrFailByOneTimeCode(validOneTimeCode.data)
const stateLogic = new CommunityHandshakeStateLogic(state)
if (
await stateLogic.isTimeoutUpdate() ||
(await stateLogic.isTimeoutUpdate()) ||
state.status !== CommunityHandshakeStateType.START_OPEN_CONNECTION_CALLBACK
) {
throw new Error('No valid pending community handshake found')

View File

@ -55,7 +55,7 @@ export async function startOpenConnectionCallback(
if (pendingState) {
const stateLogic = new CommunityHandshakeStateLogic(pendingState)
// retry on timeout or failure
if (!await stateLogic.isTimeoutUpdate()) {
if (!(await stateLogic.isTimeoutUpdate())) {
// authentication with community and api version is still in progress and it is not timeout yet
methodLogger.debug('existingState, so we exit here', new CommunityHandshakeStateLoggingView(pendingState))
return
@ -156,7 +156,7 @@ export async function startAuthentication(
}
const stateLogic = new CommunityHandshakeStateLogic(state)
if (
await stateLogic.isTimeoutUpdate() ||
(await stateLogic.isTimeoutUpdate()) ||
state.status !== CommunityHandshakeStateType.START_COMMUNITY_AUTHENTICATION
) {
methodLogger.debug('invalid state', new CommunityHandshakeStateLoggingView(state))