Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
fra-scality committed Nov 24, 2023
1 parent b3fc6ed commit fd68158
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions verifyBucketSproxydKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,15 +386,17 @@ function fetchAndCheckObject(bucket, itemKey, cb) {
}
function hasMinimalMetadata(md) {
if (!md) {
return false
return false;
}
return md.hasOwnProperty('md-model-version')
&& md.hasOwnProperty('owner-display-name')
&& md.hasOwnProperty('owner-id')
&& md.hasOwnProperty('content-length')
&& md.hasOwnProperty('content-type')
&& md.hasOwnProperty('last-modified')
&& md.hasOwnProperty('content-md5')
return (
md.hasOwnProperty("md-model-version") &&

Check failure on line 392 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 8 spaces but found 6

Check warning on line 392 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

Strings must use singlequote

Check failure on line 392 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

'&&' should be placed at the beginning of the line
md.hasOwnProperty("owner-display-name") &&

Check warning on line 393 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

Strings must use singlequote

Check failure on line 393 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

'&&' should be placed at the beginning of the line
md.hasOwnProperty("owner-id") &&

Check warning on line 394 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

Strings must use singlequote

Check failure on line 394 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

'&&' should be placed at the beginning of the line
md.hasOwnProperty("content-length") &&

Check warning on line 395 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

Strings must use singlequote

Check failure on line 395 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

'&&' should be placed at the beginning of the line
md.hasOwnProperty("content-type") &&

Check warning on line 396 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

Strings must use singlequote

Check failure on line 396 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

'&&' should be placed at the beginning of the line
md.hasOwnProperty("last-modified") &&

Check warning on line 397 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

Strings must use singlequote

Check failure on line 397 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

'&&' should be placed at the beginning of the line
md.hasOwnProperty("content-md5")

Check warning on line 398 in verifyBucketSproxydKeys.js

View workflow job for this annotation

GitHub Actions / tests

Strings must use singlequote
);
}
function listBucketIter(bucket, cb) {
const url = getBucketdURL(BUCKETD_HOSTPORT, {
Expand Down

0 comments on commit fd68158

Please sign in to comment.