From 2350dd766885c3c1b0eecb0a4e570ff6a870becc Mon Sep 17 00:00:00 2001 From: artwells Date: Sun, 24 Nov 2013 13:34:29 -0800 Subject: [PATCH] remove uncessary function check --- accounts-guest-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts-guest-client.js b/accounts-guest-client.js index 02c8128..ef767c3 100644 --- a/accounts-guest-client.js +++ b/accounts-guest-client.js @@ -30,7 +30,7 @@ Meteor.user = function () { /* you might need to limit this to avoid flooding the user db */ Meteor.loginVisitor = function () { - if (!this.userId() && typeof Meteor.loginGuest() !== 'undefined') { + if (!this.userId()) { Meteor.createGuest(); } }