Skip to content

Commit

Permalink
refactor(Wallet): remove redundant variable in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Kraszewski committed May 1, 2018
1 parent 1275cfd commit 9993574
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/Wallet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ export default class Wallet extends RPC {
username;
password;

constructor(options = {}) {

const {
hostname = '127.0.0.1',
port = 18082,
username = '',
password = '',
} = options;
super({ hostname, port});
constructor({
hostname = '127.0.0.1',
port = 18082,
username = '',
password = ''
} = {}) {

super({ hostname, port });
this.username = username;
this.password = password;
}
Expand Down

0 comments on commit 9993574

Please sign in to comment.