fix logging after return

This commit is contained in:
Bruno Windels 2023-03-28 12:39:55 +02:00
parent 58f73630b6
commit ac9c244315

View File

@ -144,8 +144,8 @@ export class CrossSigning {
log.set({publishedMasterKey: publisedEd25519Key, derivedPublicKey});
this._isMasterKeyTrusted = !!publisedEd25519Key && publisedEd25519Key === derivedPublicKey;
if (!this._isMasterKeyTrusted) {
return MSKVerification.DerivedPubKeyMismatch;
log.set("failure", "mismatch");
return MSKVerification.DerivedPubKeyMismatch;
}
return MSKVerification.Valid;
});