From 93380f6986f737e7396d7fef6d3df6357721fe8c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 6 Jan 2022 16:36:27 -0700 Subject: [PATCH] chore: rename vars to make linter happy --- s3.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/s3.js b/s3.js index 5194f22..84530a6 100644 --- a/s3.js +++ b/s3.js @@ -87,13 +87,13 @@ module.exports = S3 = { prefix = prefix.replace(/\/?$/, '/'); } - var [host, defaultHost] = toAwsBucketHost(host, bucket, region); + var [_host, defaultHost] = toAwsBucketHost(host, bucket, region); var signed = aws4.sign( { - host: host || defaultHost, + host: _host || defaultHost, service: 's3', region: region, - path: (host ? '/' + bucket : '') + '/' + prefix + key, + path: (_host ? '/' + bucket : '') + '/' + prefix + key, method: 'HEAD', signQuery: true }, @@ -144,13 +144,13 @@ module.exports = S3 = { prefix = prefix.replace(/\/?$/, '/'); } - var [host, defaultHost] = toAwsBucketHost(host, bucket, region); + var [_host, defaultHost] = toAwsBucketHost(host, bucket, region); var signed = aws4.sign( { - host: host || defaultHost, + host: _host || defaultHost, service: 's3', region: region, - path: (host ? '/' + bucket : '') + '/' + prefix + key, + path: (_host ? '/' + bucket : '') + '/' + prefix + key, method: 'GET', signQuery: true }, @@ -212,13 +212,13 @@ module.exports = S3 = { prefix = prefix.replace(/\/?$/, '/'); } - var [host, defaultHost] = toAwsBucketHost(host, bucket, region); + var [_host, defaultHost] = toAwsBucketHost(host, bucket, region); var signed = aws4.sign( { - host: host || defaultHost, + host: _host || defaultHost, service: 's3', region: region, - path: (host ? '/' + bucket : '') + '/' + prefix + key, + path: (_host ? '/' + bucket : '') + '/' + prefix + key, method: 'PUT', signQuery: true }, @@ -269,13 +269,13 @@ module.exports = S3 = { prefix = prefix.replace(/\/?$/, '/'); } - var [host, defaultHost] = toAwsBucketHost(host, bucket, region); + var [_host, defaultHost] = toAwsBucketHost(host, bucket, region); var signed = aws4.sign( { - host: host || defaultHost, + host: _host || defaultHost, service: 's3', region: region, - path: (host ? '/' + bucket : '') + '/' + prefix + key, + path: (_host ? '/' + bucket : '') + '/' + prefix + key, method: 'DELETE', signQuery: true },