Skip to content

Commit

Permalink
Docs: fixes previous short return, (fixes #2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
contra authored Feb 10, 2018
1 parent 4a31d19 commit f9b89da
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 // nothing to do!
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 f9b89da

Please sign in to comment.