Skip to content

Commit

Permalink
fixups on lint
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Apr 15, 2024
1 parent eeeae66 commit 5ef973d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/api/bucketUpdateQuota.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function parseRequestBody(requestBody, next) {
}
return next(null, jsonData);
} catch (jsonError) {
parseString(requestBody, (xmlError, xmlData) => {
return parseString(requestBody, (xmlError, xmlData) => {
if (xmlError) {
return next(errors.InvalidArgument.customizeDescription('Request body must be a JSON object'));
}
Expand All @@ -54,7 +54,8 @@ function bucketUpdateQuota(authInfo, request, log, callback) {
return next(err, bucket);
}),
(bucket, next) => parseRequestBody(request.post, (err, requestBody) => next(err, bucket, requestBody)),
(bucket, requestBody, next) => validateBucketQuotaProperty(requestBody, (err, quotaValue) => next(err, bucket, quotaValue)),
(bucket, requestBody, next) => validateBucketQuotaProperty(requestBody, (err, quotaValue) =>
next(err, bucket, quotaValue)),
(bucket, quotaValue, next) => {
bucket.setQuota(quotaValue);
return metadata.updateBucket(bucket.getName(), bucket, log, next);
Expand Down Expand Up @@ -82,4 +83,4 @@ function bucketUpdateQuota(authInfo, request, log, callback) {
});
}

module.exports = bucketUpdateQuota;
module.exports = bucketUpdateQuota;

0 comments on commit 5ef973d

Please sign in to comment.