diff options
Diffstat (limited to 'lib/doctor/check-ping.js')
-rw-r--r-- | lib/doctor/check-ping.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/doctor/check-ping.js b/lib/doctor/check-ping.js index 29a25c2fb..e7e82902a 100644 --- a/lib/doctor/check-ping.js +++ b/lib/doctor/check-ping.js @@ -4,9 +4,7 @@ var ping = require('../ping.js') function checkPing (cb) { var tracker = log.newItem('checkPing', 1) tracker.info('checkPing', 'Pinging registry') - ping({}, true, function (err, pong, data, res) { - if (err) { return cb(err) } - tracker.finish() + ping({}, true, (_err, pong, data, res) => { cb(null, [res.statusCode, res.statusMessage]) }) } |