Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit d7d1d64

Browse files
committed
Merge pull request #1026 from jloveland/jshint-issues-missed
Fixing JSHint issues with grunt, gulp, and reset-password script.
2 parents afd93b4 + 1f79770 commit d7d1d64

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

gruntfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ module.exports = function (grunt) {
147147
rename: function (base, src) {
148148
return src.replace('/scss/', '/css/');
149149
}
150-
}]
150+
}]
151151
}
152152
},
153153
less: {
@@ -159,7 +159,7 @@ module.exports = function (grunt) {
159159
rename: function (base, src) {
160160
return src.replace('/less/', '/css/');
161161
}
162-
}]
162+
}]
163163
}
164164
},
165165
'node-inspector': {

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ var _ = require('lodash'),
1616
}),
1717
path = require('path'),
1818
endOfLine = require('os').EOL,
19-
protractor = require("gulp-protractor").protractor,
20-
webdriver_update = require("gulp-protractor").webdriver_update,
21-
webdriver_standalone = require("gulp-protractor").webdriver_standalone;
19+
protractor = require('gulp-protractor').protractor,
20+
webdriver_update = require('gulp-protractor').webdriver_update,
21+
webdriver_standalone = require('gulp-protractor').webdriver_standalone;
2222

2323
// Set NODE_ENV to 'test'
2424
gulp.task('env:test', function () {

scripts/reset-password.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var nodemailer = require('nodemailer'),
24
mongoose = require('mongoose'),
35
chalk = require('chalk'),
@@ -47,7 +49,7 @@ mg.connect(function (db) {
4749
email.text = email.html = text.replace('{{name}}', user.displayName);
4850

4951
transporter.sendMail(email, emailCallback(user));
50-
};
52+
}
5153

5254
function emailCallback(user) {
5355
return function (err, info) {
@@ -68,7 +70,7 @@ mg.connect(function (db) {
6870
return reportAndExit(processedCount, errorCount);
6971
}
7072
};
71-
};
73+
}
7274

7375
// report the processing results and exit
7476
function reportAndExit(processedCount, errorCount) {
@@ -79,7 +81,7 @@ mg.connect(function (db) {
7981
if (processedCount === 0) {
8082
console.log(chalk.yellow('No users were found.'));
8183
} else {
82-
var alert = (!errorCount) ? chalk.green : ((successCount / processedCount) < .8) ? chalk.red : chalk.yellow;
84+
var alert = (!errorCount) ? chalk.green : ((successCount / processedCount) < 0.8) ? chalk.red : chalk.yellow;
8385

8486
console.log(alert('Sent ' + successCount + ' of ' + processedCount + ' emails successfully.'));
8587
}

0 commit comments

Comments
 (0)