Skip to content

Commit 8a1163a

Browse files
authored
Update index.js
1 parent 7161e70 commit 8a1163a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ class S3Adapter {
189189
await this.createBucket();
190190
const command = new GetObjectCommand(params);
191191
const response = await this._s3Client.send(command);
192-
if (response && !response.Body) { throw new Error(response); }
192+
if (response && !response.Body) {
193+
throw new Error(response);
194+
}
193195

194196
const buffer = await responseToBuffer(response);
195197
return buffer;

0 commit comments

Comments
 (0)