diff --git a/lib/authenticator.js b/lib/authenticator.js index 98e663c7..23be63a0 100644 --- a/lib/authenticator.js +++ b/lib/authenticator.js @@ -303,7 +303,7 @@ Authenticator.prototype.serializeUser = function(fn, req, done) { try { var arity = layer.length; - if (arity == 3) { + if (arity === 3) { layer(req, user, serialized); } else { layer(user, serialized); @@ -366,7 +366,7 @@ Authenticator.prototype.deserializeUser = function(fn, req, done) { try { var arity = layer.length; - if (arity == 3) { + if (arity === 3) { layer(req, obj, deserialized); } else { layer(obj, deserialized); @@ -453,11 +453,11 @@ Authenticator.prototype.transformAuthInfo = function(fn, req, done) { try { var arity = layer.length; - if (arity == 1) { + if (arity === 1) { // sync var t = layer(info); transformed(null, t); - } else if (arity == 3) { + } else if (arity === 3) { layer(req, info, transformed); } else { layer(info, transformed);