From e5a5d24216a3d9505a4777e4e2bdaee6d85316d9 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Fri, 9 Sep 2016 08:56:07 +0300 Subject: [PATCH] chore(tidy): tidying up minor lint and layout issues --- gulpfile.js | 4 ++-- scripts/upgrade-users-sparse-index.js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index d07e2b6d69..ba899bd682 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 diff --git a/scripts/upgrade-users-sparse-index.js b/scripts/upgrade-users-sparse-index.js index 863bec7ec5..f604c5797b 100644 --- a/scripts/upgrade-users-sparse-index.js +++ b/scripts/upgrade-users-sparse-index.js @@ -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); } }