Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Oct 19, 2019
1 parent d5149a3 commit 139f2eb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ gulp.task('validate:languages', cb => {
}
});

if (errors.length === 0) {
return cb();
} else {
return cb(errors);
}
return errors.length === 0 ? cb() : cb(errors);
});

gulp.task('default', gulp.series('lint', 'validate:config', 'validate:languages'));

0 comments on commit 139f2eb

Please sign in to comment.