Skip to content

Commit 7161e70

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

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
@@ -242,7 +242,9 @@ class S3Adapter {
242242
await this.createBucket();
243243
const command = new GetObjectCommand(params);
244244
const data = await this._s3Client.send(command);
245-
if (data && !data.Body) { throw new Error('S3 object body is missing.'); }
245+
if (data && !data.Body) {
246+
throw new Error('S3 object body is missing.');
247+
}
246248

247249
res.writeHead(206, {
248250
'Accept-Ranges': data.AcceptRanges,

0 commit comments

Comments
 (0)