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

Commit

Permalink
Beautifying code
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Beddows committed Apr 27, 2017
1 parent 05560bd commit f951313
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/services/delegateService.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ app.factory('delegateService', $peers => ({
publicKey: options.publicKey,
secondSecret: options.secondSecret,
delegates: options.voteList.map(delegate => `+${delegate.publicKey}`).concat(
options.unvoteList.map(delegate => `-${delegate.publicKey}`)),
options.unvoteList.map(delegate => `-${delegate.publicKey}`),
),
});
},

voteAutocomplete(username, votedDict) {
return this.listDelegates({ q: username,
}).then(response => response.delegates.filter(d => !votedDict[d.username]));
return this.listDelegates({ q: username }).then(
response => response.delegates.filter(d => !votedDict[d.username]),
);
},

unvoteAutocomplete(username, votedList) {
Expand Down

0 comments on commit f951313

Please sign in to comment.