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) } }