mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
explicit result assignment at client invocations
This commit is contained in:
parent
c7ca20fcd6
commit
3b9ff8a4a4
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user