Skip to content

Commit

Permalink
Remove and add some spaces to make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianCurtin committed Jan 17, 2025
1 parent 537a5ce commit 61ae6b0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ class S3Adapter {

// For a given config object, filename, and data, store a file in S3
// Returns a promise containing the S3 object creation response
async createFile(filename, data, contentType, options = {}, config= {}) {
async createFile(filename, data, contentType, options = {}, config = {}) {

let key_without_prefix = filename;
if (this._generateKey instanceof Function) {
try {
Expand All @@ -149,13 +149,13 @@ class S3Adapter {
throw new Error(e); // throw error if generateKey function fails
}
}

const params = {
Bucket: this._bucket,
Key: this._bucketPrefix + key_without_prefix,
Body: data,
};

if (this._fileAcl) {
if (this._fileAcl === 'none') {
delete params.ACL;
Expand Down Expand Up @@ -195,8 +195,8 @@ class S3Adapter {
return {
location: location, // actual upload location, used for tests
name: key_without_prefix, // filename in storage, consistent with other adapters
s3_response: response, // raw s3 response
...url? {url: url} : {} // url (optionally presigned) or non-direct access url
s3_response: response, // raw s3 response
...url ? { url: url } : {} // url (optionally presigned) or non-direct access url
};
}

Expand Down

0 comments on commit 61ae6b0

Please sign in to comment.