Add a return statement to the callback

To prevent a "callback already called".
v1.18.x
Erik Schamper 11 years ago
parent dea4b78cb9
commit 849db3b858

@ -24,7 +24,7 @@ var winston = require('winston'),
}
if(!Array.isArray(pids) || !pids.length) {
callback(null, false);
return callback(null, false);
}
callback(null, parseInt(pids[0], 10) === parseInt(pid, 10));

Loading…
Cancel
Save