We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a48e7b9 commit c17d268Copy full SHA for c17d268
lib/cli.js
@@ -194,11 +194,10 @@ Cli.run = function run(processArgv) {
194
195
function loadGulp(){
196
var names = ['gulpfile.js', 'Gulpfile.js'];
197
- var found = false;
198
for (var i = 0, ii = names.length; i < ii; i++) {
199
try {
200
require(path.resolve(process.cwd() + '/' + names[i]));
201
- found = true;
+ return true;
202
} catch(e){
203
if (e instanceof SyntaxError) {
204
console.error('\nThere is a syntax error in your gulpfile:');
@@ -213,7 +212,7 @@ function loadGulp(){
213
212
}
214
215
216
- return found;
+ return false;
217
218
219
function logEvents(gulpInst) {
0 commit comments