Remove another extra function wrapper

This commit is contained in:
Dan Stillman 2013-05-01 16:19:01 -04:00
parent 1e47d12436
commit 8bed3d44ed

View file

@ -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 {