Skip to content

Commit 61ae6b0

Browse files
committed
Remove and add some spaces to make lint happy
1 parent 537a5ce commit 61ae6b0

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
@@ -139,8 +139,8 @@ class S3Adapter {
139139

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

0 commit comments

Comments
 (0)