From 8bed3d44ed3e1980153aa51944773fc191e99604 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 1 May 2013 16:19:01 -0400 Subject: [PATCH] Remove another extra function wrapper --- chrome/content/zotero/preferences/preferences_sync.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js index 4b3af6a883..c37c3b9277 100644 --- a/chrome/content/zotero/preferences/preferences_sync.js +++ b/chrome/content/zotero/preferences/preferences_sync.js @@ -334,9 +334,7 @@ Zotero_Preferences.Sync = { // TODO: better way of checking for an active session? if (Zotero.Sync.Server.sessionIDComponent == 'sessionid=') { Zotero.Sync.Server.login() - .then(function () { - callback(); - }) + .then(callback) .done(); } else {