Skip to content

Commit 97ba896

Browse files
committed
CLDSRV-905: remove unused eslint-disable comments
1 parent 8424b24 commit 97ba896

6 files changed

Lines changed: 2 additions & 14 deletions

File tree

lib/api/apiUtils/object/coldStorage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function getAmzRestoreResHeader(objMD) {
2222
!objMD.archive.restoreCompletedAt) {
2323
// Avoid race condition by relying on the `archive` MD of the object
2424
// and return the right header after a RESTORE request.
25-
// eslint-disable-next-line
2625
return `ongoing-request="true"`;
2726
}
2827
if (objMD['x-amz-restore']) {

lib/utilities/serverAccessLogger.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ function getRemoteIPFromRequest(request) {
207207
return remoteIP;
208208
}
209209

210-
// eslint-disable-next-line max-len
211210
// https://github.com/awslabs/glue-extensions-for-iceberg/blob/52bdb2908216a85859fd76a45981d0326d016a2f/spark/src/main/scala/software/amazon/glue/s3a/audit/S3LogVerbs.java
212211
// https://github.com/open-io/swift/blob/ff518e9907f74b5a2565973a260f36386b5d5cbf/etc/s3-default.cfg.in#L78
213212
// https://stackoverflow.com/questions/42707878/amazon-s3-logs-operation-definition

tests/functional/aws-node-sdk/test/bucket/get.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ describe('GET Bucket - AWS.S3.listObjects', () => {
893893
.catch(() => {});
894894
});
895895

896-
// eslint-disable-next-line max-len
897896
it('should allow when the bucket policy supplies scality:ListBucketOptionalObjectAttributes that IAM lacks', async () => {
898897
await bucketUtil.s3.send(new PutBucketPolicyCommand({
899898
Bucket: bucketName,

tests/functional/aws-node-sdk/test/bucket/putBucketPolicy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ describe('aws-sdk test put bucket policy', () => {
170170
});
171171

172172
it('should allow bucket policy with pincipal arn less than 2048 characters', async () => {
173-
const params = getPolicyParams({ key: 'Principal', value: { AWS: `arn:aws:iam::767707094035:user/${generateRandomString(150)}` } }); // eslint-disable-line max-len
173+
const params = getPolicyParams({ key: 'Principal', value: { AWS: `arn:aws:iam::767707094035:user/${generateRandomString(150)}` } });
174174
await s3.send(new PutBucketPolicyCommand(params));
175175
});
176176

177177
it('should not allow bucket policy with pincipal arn more than 2048 characters', async () => {
178-
const params = getPolicyParams({ key: 'Principal', value: { AWS: `arn:aws:iam::767707094035:user/${generateRandomString(2020)}` } }); // eslint-disable-line max-len
178+
const params = getPolicyParams({ key: 'Principal', value: { AWS: `arn:aws:iam::767707094035:user/${generateRandomString(2020)}` } });
179179
try {
180180
await s3.send(new PutBucketPolicyCommand(params));
181181
throw new Error('Expected MalformedPolicy error');

tests/unit/api/apiUtils/permissionChecks.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ describe('authInfoHelper', () => {
4848
});
4949

5050
describe('checkBucketPolicy Principal logic', () => {
51-
/* eslint-disable max-len */
5251
const tests = [
5352
{
5453
description: 'bucket owner with same canonicalID as requesters should return ALLOW',
@@ -702,7 +701,6 @@ describe('checkBucketPolicy Principal logic', () => {
702701
expectedResult: checkBucketPolicyResult.ALLOW,
703702
},
704703
];
705-
/* eslint-enable max-len */
706704

707705
tests.forEach(t => {
708706
it(t.description, () => {

tests/unit/api/apiUtils/rateLimit/config.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@ describe('parseRateLimitConfig', () => {
442442

443443
assert.throws(
444444
() => parseRateLimitConfig(config),
445-
// eslint-disable-next-line max-len
446445
/rateLimiting configuration is invalid.*"bucket.defaultConfig.requestsPerSecond.limit" must be larger than or equal to 0/
447446
);
448447
});
@@ -520,7 +519,6 @@ describe('parseRateLimitConfig', () => {
520519

521520
assert.throws(
522521
() => parseRateLimitConfig(config),
523-
// eslint-disable-next-line max-len
524522
/rateLimiting configuration is invalid.*"bucket.defaultConfig.requestsPerSecond.burstCapacity" must be a positive number/
525523
);
526524
});
@@ -540,7 +538,6 @@ describe('parseRateLimitConfig', () => {
540538

541539
assert.throws(
542540
() => parseRateLimitConfig(config),
543-
// eslint-disable-next-line max-len
544541
/rateLimiting configuration is invalid.*"bucket.defaultConfig.requestsPerSecond.burstCapacity" must be a positive number/
545542
);
546543
});
@@ -560,7 +557,6 @@ describe('parseRateLimitConfig', () => {
560557

561558
assert.throws(
562559
() => parseRateLimitConfig(config),
563-
// eslint-disable-next-line max-len
564560
/rateLimiting configuration is invalid.*"bucket.defaultConfig.requestsPerSecond.burstCapacity" must be a number/
565561
);
566562
});
@@ -1039,7 +1035,6 @@ describe('parseRateLimitConfig', () => {
10391035

10401036
assert.throws(
10411037
() => parseRateLimitConfig(config),
1042-
// eslint-disable-next-line max-len
10431038
/rateLimiting configuration is invalid.*"account.defaultConfig.requestsPerSecond.burstCapacity" must be a positive number/
10441039
);
10451040
});
@@ -1059,7 +1054,6 @@ describe('parseRateLimitConfig', () => {
10591054

10601055
assert.throws(
10611056
() => parseRateLimitConfig(config),
1062-
// eslint-disable-next-line max-len
10631057
/rateLimiting configuration is invalid.*"account.defaultConfig.requestsPerSecond.burstCapacity" must be a positive number/
10641058
);
10651059
});
@@ -1079,7 +1073,6 @@ describe('parseRateLimitConfig', () => {
10791073

10801074
assert.throws(
10811075
() => parseRateLimitConfig(config),
1082-
// eslint-disable-next-line max-len
10831076
/rateLimiting configuration is invalid.*"account.defaultConfig.requestsPerSecond.burstCapacity" must be a number/
10841077
);
10851078
});

0 commit comments

Comments
 (0)