Skip to content

Commit

Permalink
fix: format error
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaperskyguru committed Apr 9, 2022
1 parent 9a9e51a commit 57dd9c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"prettier/prettier": [
"error",
{
"endOfLine": "autoFix"
"endOfLine": "auto"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/Engines/FileCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down

0 comments on commit 57dd9c4

Please sign in to comment.