diff options
Diffstat (limited to 'lib/utils/pulse-till-done.js')
-rw-r--r-- | lib/utils/pulse-till-done.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils/pulse-till-done.js b/lib/utils/pulse-till-done.js index 85fb288d1..fc6450e00 100644 --- a/lib/utils/pulse-till-done.js +++ b/lib/utils/pulse-till-done.js @@ -1,4 +1,4 @@ -"use strict" +'use strict' var validate = require('aproba') var log = require('npmlog') @@ -7,13 +7,13 @@ var pulse module.exports = function (prefix, cb) { validate('SF', [prefix, cb]) - if (!pulsers ++) { + if (!pulsers++) { pulse = setInterval(function () { - log.gauge.pulse("network") + log.gauge.pulse('network') }, 250) } return function () { - if (!-- pulsers) { + if (!--pulsers) { clearInterval(pulse) } cb.apply(null, arguments) |