Skip to content

Commit 7b03be0

Browse files
committed
🐛 update callback to async/await after merge
Issue: CLDSRV-823
1 parent 7bed447 commit 7b03be0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/api/bucketGet.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ async function bucketGet(authInfo, request, log, callback) {
277277
const optionalAttributes =
278278
request.headers['x-amz-optional-object-attributes']?.split(',').map(attr => attr.trim()) ?? [];
279279
if (optionalAttributes.some(attr => !attr.startsWith('x-amz-meta-') && attr != 'RestoreStatus')) {
280-
return callback(
281-
errorInstances.InvalidArgument.customizeDescription('Invalid attribute name specified')
282-
);
280+
throw errorInstances.InvalidArgument.customizeDescription('Invalid attribute name specified');
283281
}
284282

285283
if (v2 !== undefined && Number.parseInt(v2, 10) !== 2) {

0 commit comments

Comments
 (0)