explicit result assignment at client invocations

This commit is contained in:
clauspeterhuebner 2025-07-14 18:00:06 +02:00
parent c7ca20fcd6
commit 3b9ff8a4a4
2 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,8 @@ export async function startCommunityAuthentication(
args.jwt = jws
args.handshakeID = handshakeID
logger.debug('before client.openConnection() args:', args)
if (await client.openConnection(args)) {
const result = await client.openConnection(args)
if (result) {
logger.debug(`successful initiated at community:`, fedComB.endPoint)
} else {
logger.error(`can't initiate at community:`, fedComB.endPoint)

View File

@ -63,7 +63,8 @@ export async function startOpenConnectionCallback(
args.publicKey = homeComB!.publicKey.toString('hex')
args.jwt = jwt
args.handshakeID = handshakeID
if (await client.openConnectionCallback(args)) {
const result = await client.openConnectionCallback(args)
if (result) {
logger.debug('startOpenConnectionCallback() successful:', jwt)
} else {
logger.error('startOpenConnectionCallback() failed:', jwt)