Skip to content

Commit 394e175

Browse files
committed
Remove and add some spaces to make lint happy
1 parent fb9c42e commit 394e175

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ class S3Adapter {
140140

141141
// For a given config object, filename, and data, store a file in S3
142142
// Returns a promise containing the S3 object creation response
143-
async createFile(filename, data, contentType, options = {}, config= {}) {
144-
143+
async createFile(filename, data, contentType, options = {}, config = {}) {
144+
145145
let key_without_prefix = filename;
146146
if (this._generateKey instanceof Function) {
147147
try {
@@ -150,13 +150,13 @@ class S3Adapter {
150150
throw new Error(e); // throw error if generateKey function fails
151151
}
152152
}
153-
153+
154154
const params = {
155155
Bucket: this._bucket,
156156
Key: this._bucketPrefix + key_without_prefix,
157157
Body: data,
158158
};
159-
159+
160160
if (this._fileAcl) {
161161
if (this._fileAcl === 'none') {
162162
delete params.ACL;
@@ -196,8 +196,8 @@ class S3Adapter {
196196
return {
197197
location: location, // actual upload location, used for tests
198198
name: key_without_prefix, // filename in storage, consistent with other adapters
199-
s3_response: response, // raw s3 response
200-
...url? {url: url} : {} // url (optionally presigned) or non-direct access url
199+
s3_response: response, // raw s3 response
200+
...url ? { url: url } : {} // url (optionally presigned) or non-direct access url
201201
};
202202
}
203203

0 commit comments

Comments
 (0)