Skip to content

Commit 1d336fa

Browse files
committed
Merge pull request #1700 from Microsoft/users/ersciple/m100gulp
Remove empty delimited check.
2 parents 7f155d5 + 77b9548 commit 1d336fa

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

Tasks/Grunt/grunttask.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,8 @@ else {
3232
var gt = tl.createToolRunner(grunt);
3333
}
3434

35-
// optional - no tasks will concat nothing
36-
tl.getDelimitedInput('targets', ' ', false)
37-
.forEach(x => {
38-
// omit empty values
39-
if (x) {
40-
gt.arg(x);
41-
}
42-
});
35+
// optional - no targets will concat nothing
36+
gt.arg(tl.getDelimitedInput('targets', ' ', false));
4337

4438
gt.arg('--gruntfile');
4539

Tasks/Gulp/gulptask.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@ else {
3333
gt.arg('--no-color');
3434
}
3535

36-
// optional - no tasks will concat nothing
37-
tl.getDelimitedInput('targets', ' ', false)
38-
.forEach(x => {
39-
// omit empty values
40-
if (x) {
41-
gt.arg(x);
42-
}
43-
});
36+
// optional - no targets will concat nothing
37+
gt.arg(tl.getDelimitedInput('targets', ' ', false));
4438

4539
gt.arg('--gulpfile');
4640

0 commit comments

Comments
 (0)