Add parentheses

Signed-off-by: Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
This commit is contained in:
Georg Pfuetzenreuter 2022-07-10 11:07:48 +02:00
parent 4c8f31ffb0
commit 802b23a9fc
No known key found for this signature in database
GPG Key ID: 1ED2F138E7E6FF57

View File

@ -79,7 +79,7 @@ class PublicKey {
// if emails array is empty, all userIds of the key will be submitted // if emails array is empty, all userIds of the key will be submitted
if (emails.length) { if (emails.length) {
// keep submitted user IDs only // keep submitted user IDs only
key.userIds = key.getUserIDs.filter(({email}) => emails.includes(email)); key.userIds = key.getUserIDs().filter(({email}) => emails.includes(email));
if (key.getUserIDs().length !== emails.length) { if (key.getUserIDs().length !== emails.length) {
util.throw(400, 'Provided email address does not match a valid user ID of the key'); util.throw(400, 'Provided email address does not match a valid user ID of the key');
} }