From 27ff89a8050542a8b0f4e5d3ce8ec25b79563791 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Wed, 20 Jul 2011 13:32:40 -0600 Subject: [PATCH] remove addEmailToAccount from exports. in db, it's not used outside the module --- browserid/lib/db.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browserid/lib/db.js b/browserid/lib/db.js index dc890736b..de5548e2c 100644 --- a/browserid/lib/db.js +++ b/browserid/lib/db.js @@ -117,7 +117,7 @@ function generateSecret() { return str; } -exports.addEmailToAccount = function(existing_email, email, pubkey, cb) { +function addEmailToAccount(existing_email, email, pubkey, cb) { emailToUserID(existing_email, function(userID) { if (userID == undefined) { cb("no such email: " + existing_email, undefined); @@ -245,7 +245,7 @@ exports.gotVerificationSecret = function(secret, cb) { } else if (o.type === 'add_email') { exports.emailKnown(o.email, function(known) { function addIt() { - exports.addEmailToAccount(o.existing_email, o.email, o.pubkey, cb); + addEmailToAccount(o.existing_email, o.email, o.pubkey, cb); } if (known) { exports.removeEmail(o.email, o.email, function (err) { -- GitLab