node: minor.

This commit is contained in:
Christopher Jeffrey 2017-07-01 07:01:51 -07:00
parent 5e78cf4998
commit 4f68d4cde0
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -123,21 +123,10 @@ Node.prototype.init = function init() {
this.emit('error', err);
});
this.hook('preopen', () => {
this.handlePreopen();
});
this.hook('preclose', () => {
this.handlePreclose();
});
this.hook('open', () => {
this.handleOpen();
});
this.hook('close', () => {
this.handleClose();
});
this.hook('preopen', () => this.handlePreopen());
this.hook('preclose', () => this.handlePreclose());
this.hook('open', () => this.handleOpen());
this.hook('close', () => this.handleClose());
};
/**