chore: rename vars to make linter happy

This commit is contained in:
AJ ONeal 2022-01-06 16:36:27 -07:00
parent b4e1ad20d9
commit 93380f6986
No known key found for this signature in database
GPG Key ID: C1D1AA22378CC345
1 changed files with 12 additions and 12 deletions

24
s3.js
View File

@ -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
},