mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Fix let to const
This commit is contained in:
@@ -6,7 +6,7 @@ const sander = require('sander')
|
|||||||
function copyImage (filePath, storageKey) {
|
function copyImage (filePath, storageKey) {
|
||||||
let targetStorage
|
let targetStorage
|
||||||
try {
|
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.')
|
if (!_.isArray(cachedStorageList)) throw new Error('Target storage doesn\'t exist.')
|
||||||
|
|
||||||
targetStorage = _.find(cachedStorageList, {key: storageKey})
|
targetStorage = _.find(cachedStorageList, {key: storageKey})
|
||||||
|
|||||||
Reference in New Issue
Block a user