From 3049c64066e132c3691c42e7527ac721b04a1407 Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Fri, 2 Aug 2019 01:00:34 +0800 Subject: [PATCH] refactor: fix lint on lib/web/imageRouter/s3.js Signed-off-by: BoHong Li --- lib/web/imageRouter/s3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/imageRouter/s3.js b/lib/web/imageRouter/s3.js index 5bbd647f..7fd78c32 100644 --- a/lib/web/imageRouter/s3.js +++ b/lib/web/imageRouter/s3.js @@ -26,7 +26,7 @@ exports.uploadImage = function (imagePath, callback) { callback(new Error(err), null) return } - let params = { + const params = { Bucket: config.s3bucket, Key: path.join('uploads', path.basename(imagePath)), Body: buffer