Skip to content
Permalink
Browse files

whoops, fix observ-file

  • Loading branch information...
mmckegg committed Dec 31, 2017
1 parent 8fa860d commit 8f8134f8fe4416f512d35996ca3028e3c0618d97
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/observ-file.js
@@ -138,7 +138,7 @@ function read (item) {
})
})
} else if (item.encoding === 'arraybuffer') {
item.fs.readFile(item.path, 'binary', function (err, result) {
item.fs.readFile(item.path, function (err, result) {
onceIdle(() => {
item.reading = false
result = result ? result.buffer : null
@@ -148,7 +148,7 @@ function read (item) {
})
})
} else {
item.fs.readFile(item.path, 'binary', function (err, result) {
item.fs.readFile(item.path, function (err, result) {
onceIdle(() => {
item.reading = false
item.lastValue = result

0 comments on commit 8f8134f

Please sign in to comment.
You can’t perform that action at this time.