Skip to content

Commit

Permalink
Make code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
moorscode committed Feb 13, 2021
1 parent 594877b commit 6a5f85b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions backend/src/pokers/poker-room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,15 @@ export class PokerRoom {
*/
public getUnobscuredVotes( story: Story ): Vote[] {
const notVotedClients:Member[] = this.getVotePendingClients();
const notVoted = notVotedClients.map(
( client: Member ): ObscuredVote => this.getObscuredVote( this.currentStory, client ),
);

return [
// The actual votes.
...story.votes,
// Backfill pending votes with obscured '?' votes.
...notVotedClients.map(
( client: Member ): ObscuredVote => this.getObscuredVote( this.currentStory, client ),
),
// Backfill pending votes with obscured votes.
...notVoted,
];
}

Expand Down

0 comments on commit 6a5f85b

Please sign in to comment.