chore: rename vars to make linter happy
This commit is contained in:
parent
b4e1ad20d9
commit
93380f6986
24
s3.js
24
s3.js
|
@ -87,13 +87,13 @@ module.exports = S3 = {
|
||||||
prefix = prefix.replace(/\/?$/, '/');
|
prefix = prefix.replace(/\/?$/, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
var [host, defaultHost] = toAwsBucketHost(host, bucket, region);
|
var [_host, defaultHost] = toAwsBucketHost(host, bucket, region);
|
||||||
var signed = aws4.sign(
|
var signed = aws4.sign(
|
||||||
{
|
{
|
||||||
host: host || defaultHost,
|
host: _host || defaultHost,
|
||||||
service: 's3',
|
service: 's3',
|
||||||
region: region,
|
region: region,
|
||||||
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
path: (_host ? '/' + bucket : '') + '/' + prefix + key,
|
||||||
method: 'HEAD',
|
method: 'HEAD',
|
||||||
signQuery: true
|
signQuery: true
|
||||||
},
|
},
|
||||||
|
@ -144,13 +144,13 @@ module.exports = S3 = {
|
||||||
prefix = prefix.replace(/\/?$/, '/');
|
prefix = prefix.replace(/\/?$/, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
var [host, defaultHost] = toAwsBucketHost(host, bucket, region);
|
var [_host, defaultHost] = toAwsBucketHost(host, bucket, region);
|
||||||
var signed = aws4.sign(
|
var signed = aws4.sign(
|
||||||
{
|
{
|
||||||
host: host || defaultHost,
|
host: _host || defaultHost,
|
||||||
service: 's3',
|
service: 's3',
|
||||||
region: region,
|
region: region,
|
||||||
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
path: (_host ? '/' + bucket : '') + '/' + prefix + key,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
signQuery: true
|
signQuery: true
|
||||||
},
|
},
|
||||||
|
@ -212,13 +212,13 @@ module.exports = S3 = {
|
||||||
prefix = prefix.replace(/\/?$/, '/');
|
prefix = prefix.replace(/\/?$/, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
var [host, defaultHost] = toAwsBucketHost(host, bucket, region);
|
var [_host, defaultHost] = toAwsBucketHost(host, bucket, region);
|
||||||
var signed = aws4.sign(
|
var signed = aws4.sign(
|
||||||
{
|
{
|
||||||
host: host || defaultHost,
|
host: _host || defaultHost,
|
||||||
service: 's3',
|
service: 's3',
|
||||||
region: region,
|
region: region,
|
||||||
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
path: (_host ? '/' + bucket : '') + '/' + prefix + key,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
signQuery: true
|
signQuery: true
|
||||||
},
|
},
|
||||||
|
@ -269,13 +269,13 @@ module.exports = S3 = {
|
||||||
prefix = prefix.replace(/\/?$/, '/');
|
prefix = prefix.replace(/\/?$/, '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
var [host, defaultHost] = toAwsBucketHost(host, bucket, region);
|
var [_host, defaultHost] = toAwsBucketHost(host, bucket, region);
|
||||||
var signed = aws4.sign(
|
var signed = aws4.sign(
|
||||||
{
|
{
|
||||||
host: host || defaultHost,
|
host: _host || defaultHost,
|
||||||
service: 's3',
|
service: 's3',
|
||||||
region: region,
|
region: region,
|
||||||
path: (host ? '/' + bucket : '') + '/' + prefix + key,
|
path: (_host ? '/' + bucket : '') + '/' + prefix + key,
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
signQuery: true
|
signQuery: true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue