From 57dd9c48b392061c96b5f0d9e90c3086ab0e25a8 Mon Sep 17 00:00:00 2001 From: Solomon Eseme Date: Sat, 9 Apr 2022 23:12:27 +0100 Subject: [PATCH] fix: format error --- .eslintrc.json | 2 +- src/Engines/FileCache.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index a7ce0b6..ef486c9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,7 +5,7 @@ "prettier/prettier": [ "error", { - "endOfLine": "autoFix" + "endOfLine": "auto" } ] } diff --git a/src/Engines/FileCache.ts b/src/Engines/FileCache.ts index 8b9f5bf..f67d6b9 100644 --- a/src/Engines/FileCache.ts +++ b/src/Engines/FileCache.ts @@ -54,13 +54,13 @@ class FileCache implements EngineInterface { fs.writeFileSync( this.path() + '/' + this.hashKey(key) + '.cache', JSON.stringify(newArr), - 'binary', + 'binary' ) } private read(key: string): any { const data = JSON.parse( - fs.readFileSync(this.path() + '/' + this.hashKey(key) + '.cache', 'binary'), + fs.readFileSync(this.path() + '/' + this.hashKey(key) + '.cache', 'binary') ) if (data['meta']) {