Skip to content

Commit

Permalink
simplify postlink/run.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslan-bikkinin committed Sep 18, 2017
1 parent f9bb070 commit 8a063af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/postlink/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ var postlinks = [
];

//run them sequentially
var result = postlinks.reduce((p, fn) => p.then(fn), Promise.resolve());
result.catch((err) => {
console.error(err.message);
});
postlinks
.reduce((p, fn) => p.then(fn), Promise.resolve())
.catch((err) => {
console.error(err.message);
});

0 comments on commit 8a063af

Please sign in to comment.