Skip to content

Commit 05ae30c

Browse files
committedJun 15, 2017
Revert "Ensure calling .stop does not error if callback is not passed in"
This reverts commit ff529c8.
1 parent ca01f97 commit 05ae30c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed
 

‎lib/Local.js

-6
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ function Local(){
1818
this.doneRegex = /Press Ctrl-C to exit/i;
1919

2020
this.start = function(options, callback){
21-
if(typeof callback !== 'function')
22-
callback = function(){};
23-
2421
this.userArgs = [];
2522
var that = this;
2623
this.addArgs(options);
@@ -107,9 +104,6 @@ function Local(){
107104
};
108105

109106
this.stop = function (callback) {
110-
if(typeof callback !== 'function')
111-
callback = function(){};
112-
113107
if(!this.pid) return callback();
114108
this.opcode = 'stop';
115109
this.tunnel = childProcess.execFile(this.binaryPath, this.getBinaryArgs(), function(error){

0 commit comments

Comments
 (0)
Please sign in to comment.