From b2187b72abbb0ce095b609804f6e3094f6f002bf Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Tue, 21 Feb 2017 23:24:02 +0900 Subject: [PATCH] Fix let to const --- browser/main/lib/dataApi/copyImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/main/lib/dataApi/copyImage.js b/browser/main/lib/dataApi/copyImage.js index 072b91eb..0532c333 100644 --- a/browser/main/lib/dataApi/copyImage.js +++ b/browser/main/lib/dataApi/copyImage.js @@ -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})