mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-25 15:51:02 +01:00
chore(tidy): tidying up minor lint and layout issues
This commit is contained in:
@@ -132,9 +132,9 @@ gulp.task('watch:server:run-tests', function () {
|
||||
gulp.task('csslint', function () {
|
||||
return gulp.src(defaultAssets.client.css)
|
||||
.pipe(plugins.csslint('.csslintrc'))
|
||||
.pipe(plugins.csslint.formatter())
|
||||
.pipe(plugins.csslint.formatter());
|
||||
// Don't fail CSS issues yet
|
||||
//.pipe(plugins.csslint.failFormatter());
|
||||
// .pipe(plugins.csslint.failFormatter());
|
||||
});
|
||||
|
||||
// ESLint JS linting task
|
||||
|
||||
@@ -26,8 +26,7 @@ mongoose.connect(function (db) {
|
||||
|
||||
if (err) {
|
||||
errors.push(err);
|
||||
message = 'An error occured while removing the index "' +
|
||||
_indexToRemove + '".';
|
||||
message = 'An error occured while removing the index "' + _indexToRemove + '".';
|
||||
|
||||
if (err.message.indexOf('index not found with name') !== -1) {
|
||||
message = 'Index "' + _indexToRemove + '" could not be found.' +
|
||||
@@ -51,7 +50,7 @@ function reportAndExit(message) {
|
||||
for (var i = 0; i < errors.length; i++) {
|
||||
console.log(chalk.red(errors[i]));
|
||||
|
||||
if (i === errors.length -1) {
|
||||
if (i === (errors.length -1) ) {
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user