Skip to content

Commit

Permalink
allow to read file that saved in other encodings then utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
bikov committed Aug 12, 2019
1 parent ace9d27 commit 226b42a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/storage.js
Expand Up @@ -41,9 +41,7 @@ const lock = require('./lock');
const readFile = function(fileName, callback, times) {
times = times || 0;

fs.readFile(fileName, {
encoding: 'utf8'
}, function(error, object) {
fs.readFile(fileName, function(error, object) {
if (!error) {
return callback(null, object);
}
Expand Down

0 comments on commit 226b42a

Please sign in to comment.