Skip to content

Commit

Permalink
Docs: Improve recipe for empty glob array (closes #2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
contra authored and phated committed Feb 11, 2018
1 parent 126423a commit 45830cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/recipes/running-task-steps-per-folder.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function getFolders(dir) {
});
}

gulp.task('scripts', function() {
gulp.task('scripts', function(done) {
var folders = getFolders(scriptsPath);

if (folder.length === 0) return done(); // nothing to do!
var tasks = folders.map(function(folder) {
return gulp.src(path.join(scriptsPath, folder, '/**/*.js'))
// concat into foldername.js
Expand Down

0 comments on commit 45830cf

Please sign in to comment.