From 70ed8d666c118e4d92c0102031e3c7c7c05dd8c9 Mon Sep 17 00:00:00 2001 From: Pablo Klaschka Date: Sun, 28 Oct 2018 11:02:37 +0100 Subject: [PATCH] Update storage-helper.js --- storage-helper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/storage-helper.js b/storage-helper.js index 3a1ccab..bc13d1a 100644 --- a/storage-helper.js +++ b/storage-helper.js @@ -19,14 +19,13 @@ class storageHelper { return file; } else { - throw new Error(Storage file storage.json was not a file.'); + throw new Error('Storage file storage.json was not a file.'); } } catch { const file = await dataFolder.createEntry('data.json', {type: storage.types.file, overwrite: true}); if (file.isFile) { await file.write('{}', {append: false}); - // noinspection JSValidateTypes return file; } else { throw new Error('Storage file storage.json was not a file.');