inverted value required, double exclamation mark just casts as boolean

v1.18.x
Vincent Briglia 12 years ago
parent 8eae8a4fb5
commit 19ad9ab224

@ -276,7 +276,7 @@ var utils = require('./../public/src/utils.js'),
User.isEmailAvailable = function(email, callback) { User.isEmailAvailable = function(email, callback) {
RDB.exists('email:' + email + ':uid' , function(err, exists) { RDB.exists('email:' + email + ':uid' , function(err, exists) {
callback(err, !!!exists); callback(err, !exists);
}); });
} }

Loading…
Cancel
Save