Skip to content

Commit

Permalink
Fix more stupid mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
rbayliss committed Nov 7, 2019
1 parent 1e532ab commit d549044
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ function addWatchTask(taker, name, description) {
// Define the watch function.
let watch = () => {
for (let watchableName of watchables) {

const watchableTask = taker.task(watchableName);
taker.watch(watchableTask.unwrap()._watch, watchableTask);
}
return Promise.resolve();
};
// Push an initial run of each watchable task onto the beginning.
if (watchables.length > 0) {
watch = taker.series(taker.parallel(watchables), watch);
}
task.displayName = name;
task.description = description;
watch.displayName = name;
watch.description = description;

taker.task(name, task);
taker.task(name, watch);
}


Expand Down

0 comments on commit d549044

Please sign in to comment.