From 8394ff58e96fd01cfa096821d61dedb89b105a8a Mon Sep 17 00:00:00 2001 From: BoHong Li Date: Fri, 2 Aug 2019 01:03:05 +0800 Subject: [PATCH] refactor: fix lint on public/js/history.js Signed-off-by: BoHong Li --- public/js/history.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/history.js b/public/js/history.js index 6dc18548..d1c7f25f 100644 --- a/public/js/history.js +++ b/public/js/history.js @@ -144,7 +144,7 @@ export function writeHistory (title, tags) { } function writeHistoryToStorage (title, tags) { - let data = store.get('notehistory') + const data = store.get('notehistory') let notehistory if (data && typeof data === 'string') { notehistory = JSON.parse(data) @@ -260,7 +260,7 @@ function parseToHistory (list, notehistory, callback) { for (let i = 0; i < notehistory.length; i++) { // migrate LZString encoded id to base64url encoded id try { - let id = LZString.decompressFromBase64(notehistory[i].id) + const id = LZString.decompressFromBase64(notehistory[i].id) if (id && checkNoteIdValid(id)) { notehistory[i].id = encodeNoteId(id) }