Skip to content

Commit

Permalink
JS changes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewosh committed Nov 19, 2019
1 parent 7ec7c06 commit 1816749
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ class Fuse extends Nanoresource {
this.ops = ops
this._thread = null
this._handlers = this._makeHandlerArray()
this._closed = false

const implemented = [binding.op_init, binding.op_error, binding.op_getattr]
if (ops) {
Expand Down Expand Up @@ -229,8 +228,6 @@ class Fuse extends Nanoresource {
// Lifecycle methods

_open (cb) {
if (this._closed) return process.nextTick(cb, new Error('Cannot reopen a closed FUSE instance.'))

this._thread = Buffer.alloc(binding.sizeof_fuse_thread_t)
this._openCallback = cb

Expand Down Expand Up @@ -525,11 +522,11 @@ class Fuse extends Nanoresource {
// Public API

mount (cb) {
return this._open(cb)
return this.open(cb)
}

unmount (cb) {
return this._close(cb)
return this.close(cb)
}

errno (code) {
Expand Down

0 comments on commit 1816749

Please sign in to comment.