Skip to content

Commit

Permalink
Merge pull request #4 from matthijsch/remove-instances-gulp-nop
Browse files Browse the repository at this point in the history
Use util.noop in bodyjs and headjs instead of seperate nop function
  • Loading branch information
Arjen-Smit committed Mar 2, 2016
2 parents 0401b2c + 72f82d5 commit fed8d4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tasks/bodyjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (gulp, config, plugins) {
return function () {

if (typeof plugins['include'] == 'undefined') {
plugins['include'] = plugins.nop;
plugins['include'] = plugins.util.noop;
}

return gulp.src(config.bodyjs.src)
Expand All @@ -20,4 +20,4 @@ module.exports = function (gulp, config, plugins) {
.pipe(gulp.dest(config.bodyjs.dest))
.pipe(plugins.livereload());
};
};
};
4 changes: 2 additions & 2 deletions tasks/headjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (gulp, config, plugins) {
return function () {

if (typeof plugins['include'] == 'undefined') {
plugins['include'] = plugins.nop;
plugins['include'] = plugins.util.noop;
}

return gulp.src(config.headjs.src)
Expand All @@ -20,4 +20,4 @@ module.exports = function (gulp, config, plugins) {
.pipe(gulp.dest(config.headjs.dest))
.pipe(plugins.livereload());
};
};
};

0 comments on commit fed8d4a

Please sign in to comment.