Skip to content

Commit

Permalink
Fix for #50792: empty pre post scripts not rendered properly
Browse files Browse the repository at this point in the history
  • Loading branch information
egamma committed May 30, 2018
1 parent c717348 commit 8b9b0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/npm/src/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function getPrePostScripts(scripts: any): Set<string> {
const script = keys[i];
const prepost = ['pre' + script, 'post' + script];
prepost.forEach(each => {
if (scripts[each]) {
if (scripts[each] !== undefined) {
prePostScripts.add(each);
}
});
Expand Down

0 comments on commit 8b9b0d3

Please sign in to comment.