Skip to content

[FIX Fix bug in pivot block selector#747

Merged
KonradStaniec merged 1 commit intodevelopfrom
fix/pivot-block-selector-empty-handling
Oct 20, 2020
Merged

[FIX Fix bug in pivot block selector#747
KonradStaniec merged 1 commit intodevelopfrom
fix/pivot-block-selector-empty-handling

Conversation

@KonradStaniec
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

3 participants