Skip to content

Commit

Permalink
Make test pass and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Flolagale committed Jul 23, 2015
1 parent 5f7a734 commit 5ec7c10
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 118 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
"unused": true,
"trailing": true,
"white": true,
"globalstrict": true,
"globalstrict": false,
"browser": true,
"node": true,
"jquery": true,
"devel": true,
"globals": {
"FormData": true,
"Promise": true,

"before": false,
"after": false,
Expand Down
6 changes: 4 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var fs = require('fs');

module.exports = function(grunt) {
module.exports = function (grunt) {

// Load .jshintrc file.
var hintOptions = JSON.parse(fs.readFileSync('.jshintrc', 'utf8'));
Expand All @@ -27,7 +27,9 @@ module.exports = function(grunt) {
jsbeautifier: {
files: ['<%= jsfiles %>'],
options: {
space_after_anon_function: true
js: {
spaceAfterAnonFunction: true
}
}
},

Expand Down
5 changes: 3 additions & 2 deletions lib/mailUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = {
verifyDkim.on('close', function (code) {
logger.verbose('closed with return code ' + code);
/* Convert return code to appropriate boolean. */
return callback(null, !! !code);
return callback(null, !!!code);
});

verifyDkim.stdin.write(rawEmail);
Expand All @@ -63,7 +63,7 @@ module.exports = {
logger.verbose('closed with return code ' + code);

/* Convert return code to appropriate boolean. */
return callback(null, !! !code);
return callback(null, !!!code);
});
},

Expand All @@ -74,6 +74,7 @@ module.exports = {
}

spamc.report(rawEmail, function (err, result) {
logger.info(result);
if (err) logger.error(err);
if (err) return callback(new Error('Unable to compute spam score.'));
callback(null, result.spamScore);
Expand Down
Loading

0 comments on commit 5ec7c10

Please sign in to comment.