Skip to content

Commit 8fa548c

Browse files
committed
post review fixup
1 parent 1baa4e1 commit 8fa548c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/routes/routeVeeam.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ function checkBucketAndKey(bucketName, objectKey, requestQueryParams, method, lo
8383
|| normalizedQueryKeys.has('tagging'));
8484

8585
if (!isPresignedGet && normalizedQueryKeys.size > 0) {
86-
const unsupportedKeys = Array.from(normalizedQueryKeys.keys())
87-
.filter(lowerKey => {
86+
const hasUnsupportedKeys = Array.from(normalizedQueryKeys.keys())
87+
.some(lowerKey => {
8888
if (allowedSdkQueryKeys.has(lowerKey)) {
8989
return false;
9090
}
@@ -93,7 +93,7 @@ function checkBucketAndKey(bucketName, objectKey, requestQueryParams, method, lo
9393
}
9494
return true;
9595
});
96-
if (unsupportedKeys.length > 0) {
96+
if (hasUnsupportedKeys) {
9797
return errorInstances.InvalidRequest
9898
.customizeDescription('The Veeam SOSAPI folder does not support this action.');
9999
}

0 commit comments

Comments
 (0)