Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Enumerable#filter_map in more places #15527

Merged
merged 1 commit into from
Jan 22, 2021
Merged

Use Enumerable#filter_map in more places #15527

merged 1 commit into from
Jan 22, 2021

Conversation

007lva
Copy link
Contributor

@007lva 007lva commented Jan 10, 2021

These patterns:

  • reject { ... }.map { ... }
  • select { ... }.map { ... }
  • select { ... }.filter_map { ... }

can also be merged into a single filter_map call.

Base automatically changed from master to main January 20, 2021 10:31
@007lva
Copy link
Contributor Author

007lva commented Jan 22, 2021

Hi, is there anything I can do to help this get merged? Thanks.

@Gargron Gargron merged commit 7ea9588 into mastodon:main Jan 22, 2021
@007lva 007lva deleted the chore/use-filter-map-in-more-places branch January 22, 2021 15:35
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