refactor: fix lint on lib/utils.js

Signed-off-by: BoHong Li <raccoon@hackmd.io>
This commit is contained in:
BoHong Li 2019-08-04 23:26:06 +08:00
parent d3fc6f58e3
commit fffefcc5f8
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38

View File

@ -7,7 +7,7 @@ exports.isSQLite = function isSQLite (sequelize) {
}
exports.getImageMimeType = function getImageMimeType (imagePath) {
var fileExtension = /[^.]+$/.exec(imagePath)
const fileExtension = /[^.]+$/.exec(imagePath)
switch (fileExtension[0]) {
case 'bmp':