Skip to content

Commit de8f990

Browse files
committed
[#358] Remove unused variables
1 parent 669b58e commit de8f990

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

server/controllers/aws.controller.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ const client = s3.createClient({
2020
},
2121
});
2222

23-
const bucketBase = process.env.S3_BUCKET_URL_BASE;
24-
const s3Url = `https://s3-${process.env.AWS_REGION}.amazonaws.com/${process.env.S3_BUCKET}/`;
25-
const s3Bucket = bucketBase || s3Url;
23+
const s3Bucket = process.env.S3_BUCKET_URL_BASE ||
24+
`https://s3-${process.env.AWS_REGION}.amazonaws.com/${process.env.S3_BUCKET}/`;
2625

2726
function getExtension(filename) {
2827
const i = filename.lastIndexOf('.');

0 commit comments

Comments
 (0)