1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Fix let to const

This commit is contained in:
asmsuechan
2017-02-21 23:24:02 +09:00
parent aae2bddd32
commit b2187b72ab

View File

@@ -6,7 +6,7 @@ const sander = require('sander')
function copyImage (filePath, storageKey) {
let targetStorage
try {
let cachedStorageList = JSON.parse(localStorage.getItem('storages'))
const cachedStorageList = JSON.parse(localStorage.getItem('storages'))
if (!_.isArray(cachedStorageList)) throw new Error('Target storage doesn\'t exist.')
targetStorage = _.find(cachedStorageList, {key: storageKey})