Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Create params instead of extending Wallet.delete()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Deckard committed Dec 2, 2014
1 parent 366cc9a commit 7bd3253
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wallet.js
Expand Up @@ -80,13 +80,13 @@ Wallet.prototype.updateMainData = function(params) {
});
};

Wallet.prototype.delete = function(params) {
params = _.extend(params, _.pick(this, [
Wallet.prototype.delete = function() {
var params = _.pick(this, [
'server',
'walletId',
'username',
'lockVersion'
]));
]);

return protocol.deleteWallet(params);
};
Expand Down

0 comments on commit 7bd3253

Please sign in to comment.