From 9a01c8fb567fc4c5b61b4fc3a29d23893189f027 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Tue, 2 Dec 2014 11:17:03 -0300 Subject: [PATCH] mv log to util --- js/models/Identity.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/models/Identity.js b/js/models/Identity.js index d4794bb06..33f267337 100644 --- a/js/models/Identity.js +++ b/js/models/Identity.js @@ -125,7 +125,7 @@ Identity.open = function(opts, cb) { var storage = opts.storage || opts.pluginManager.get('DB'); storage.setCredentials(opts.email, opts.password, opts); - storage.getItem(Identity.getKeyForEmail(opts.email), function(err, data, headers) { + storage.getItem(Identity.getKeyForEmail(opts.email), function(err, data) { var exported; if (err) { return cb(err); @@ -135,7 +135,7 @@ Identity.open = function(opts, cb) { } catch (e) { return cb(e); } - return cb(null, new Identity(_.extend(opts, exported)), headers); + return cb(null, new Identity(_.extend(opts, exported))); }); }; @@ -654,7 +654,6 @@ Identity.prototype.deleteWallet = function(walletId, cb) { if (err) return cb(err); self.emitAndKeepAlive('walletDeleted', walletId); self.store(null, cb); - return cb(); }); };