Skip to content

Commit 6a5f85b

Browse files
committed
Make code more readable
1 parent 594877b commit 6a5f85b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

backend/src/pokers/poker-room.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,15 @@ export class PokerRoom {
354354
*/
355355
public getUnobscuredVotes( story: Story ): Vote[] {
356356
const notVotedClients:Member[] = this.getVotePendingClients();
357+
const notVoted = notVotedClients.map(
358+
( client: Member ): ObscuredVote => this.getObscuredVote( this.currentStory, client ),
359+
);
357360

358361
return [
359362
// The actual votes.
360363
...story.votes,
361-
// Backfill pending votes with obscured '?' votes.
362-
...notVotedClients.map(
363-
( client: Member ): ObscuredVote => this.getObscuredVote( this.currentStory, client ),
364-
),
364+
// Backfill pending votes with obscured votes.
365+
...notVoted,
365366
];
366367
}
367368

0 commit comments

Comments
 (0)