Skip to content

Conversation

@KonradStaniec
Copy link
Contributor

Description

Fixes a bug in pivot block selector

@KonradStaniec KonradStaniec requested a review from mmrozek October 20, 2020 12:02
if (headers.isEmpty) {
None
} else {
Some(headers.maxBy { case (_, headerWithVotes) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe cats maximumOption would be useful here?

Copy link
Contributor

@mmrozek mmrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@KonradStaniec KonradStaniec force-pushed the fix/pivot-block-selector-empty-handling branch from bddc992 to a5bbbc7 Compare October 20, 2020 12:23
@KonradStaniec KonradStaniec force-pushed the fix/pivot-block-selector-empty-handling branch from a5bbbc7 to effa2d1 Compare October 20, 2020 12:34
@KonradStaniec KonradStaniec merged commit effa2d1 into develop Oct 20, 2020
@KonradStaniec KonradStaniec deleted the fix/pivot-block-selector-empty-handling branch October 20, 2020 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants