From 9aac8967aaac1b6d0aa1550d5dfe2b88c68f842f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Lach=C3=A8ze?= Date: Mon, 10 Jul 2017 23:56:44 +0200 Subject: [PATCH] :shirt: --- lib/renderer/extensions/storage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/renderer/extensions/storage.js b/lib/renderer/extensions/storage.js index 118ef6bf497e..1453cb97fadd 100644 --- a/lib/renderer/extensions/storage.js +++ b/lib/renderer/extensions/storage.js @@ -1,7 +1,7 @@ const fs = require('fs') const path = require('path') const { remote } = require('electron') -const { app } = remote; +const { app } = remote const getChromeStoragePath = (storageType, extensionId) => { return path.join( @@ -9,7 +9,7 @@ const getChromeStoragePath = (storageType, extensionId) => { } const readChromeStorageFile = (storageType, extensionId) => { const filePath = getChromeStoragePath(storageType, extensionId) - if(!fs.existsSync(filePath)) return null + if (!fs.existsSync(filePath)) return null return fs.readFileSync(filePath, 'utf8') } @@ -34,7 +34,7 @@ const getStorage = (storageType, extensionId) => { const setStorage = (storageType, extensionId, storage) => { const json = JSON.stringify(storage) - const data = writeChromeStorageFile(storageType, extensionId, json) + writeChromeStorageFile(storageType, extensionId, json) } const scheduleCallback = (items, callback) => {