From 4f68d4cde04e1eabc3fc84e285e76512a795514e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 1 Jul 2017 07:01:51 -0700 Subject: [PATCH] node: minor. --- lib/node/node.js | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/lib/node/node.js b/lib/node/node.js index ebeac7fa..932a9103 100644 --- a/lib/node/node.js +++ b/lib/node/node.js @@ -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()); }; /**