From 437a841e7295b982e5479e08ee74d8b377883563 Mon Sep 17 00:00:00 2001 From: eliot-akira Date: Sat, 9 Oct 2021 11:48:40 +0200 Subject: [PATCH] Lint --- lib/persistence.js | 1 - test_lac/loadAndCrash.test.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/persistence.js b/lib/persistence.js index c5b9773..088c5cc 100755 --- a/lib/persistence.js +++ b/lib/persistence.js @@ -73,7 +73,6 @@ class Persistence { * @param {Function} callback Optional callback, signature: err */ persistCachedDatabase (callback = () => {}) { - const lines = [] if (this.inMemoryOnly) return callback(null) diff --git a/test_lac/loadAndCrash.test.js b/test_lac/loadAndCrash.test.js index e423af5..ca5bd82 100755 --- a/test_lac/loadAndCrash.test.js +++ b/test_lac/loadAndCrash.test.js @@ -117,10 +117,10 @@ fs.writeFile = function (path, data, options, callback_) { fs.createWriteStream = function (path) { let content = '' return { - write(data) { + write (data) { content += data }, - close(callback) { + close (callback) { fs.writeFile(path, content, callback) } }