Skip to content

Node.js based forum software built for the modern web

inverted value required, double exclamation mark just casts as boolean

Vincent Briglia19ad9ab2247b
diff --git a/src/user.js b/src/user.js
index c2d50ed1bf..a0ef905215 100644
--- a/src/user.js
+++ b/src/user.js
@@ -276,7 +276,7 @@ var utils = require('./../public/src/utils.js'),
User.isEmailAvailable = function(email, callback) {
RDB.exists('email:' + email + ':uid' , function(err, exists) {
- callback(err, !!!exists);
+ callback(err, !exists);
});
}