mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 01:05:14 +02:00
Fix all lib/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -2,12 +2,13 @@ var Promise = require('bluebird')
|
||||
|
||||
module.exports.periodicNotify = function(promise, interval) {
|
||||
var resolver = Promise.defer()
|
||||
, timer = setInterval(notify, interval)
|
||||
|
||||
function notify() {
|
||||
resolver.progress()
|
||||
}
|
||||
|
||||
var timer = setInterval(notify, interval)
|
||||
|
||||
function resolve(value) {
|
||||
resolver.resolve(value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user