chore(tidy): tidying up minor lint and layout issues

This commit is contained in:
Liran Tal
2016-09-09 08:56:07 +03:00
parent 38d92e39ac
commit e5a5d24216
2 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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);
}
}