fixup: missing parenthesis

This commit is contained in:
Johann150 2023-01-08 19:34:03 +01:00
parent c7ab8839dc
commit cd26e3a35c
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -90,10 +90,9 @@ function validateActor(x: IObject): IActor {
throw new Error('invalid Actor: publicKey.id is not a string');
}
const publicKeyIdHost = extractDbHost(x.publicKey.id);
// This is a security critical check to not insert or change an entry of
// UserPublickey to point to a local key id.
if (extractDbHost(uri) !== extractDbHost(x.publicKey.id) {
if (extractDbHost(uri) !== extractDbHost(x.publicKey.id)) {
throw new Error('invalid Actor: publicKey.id has different host');
}
}