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 map to transform values in find_user_groups #84

Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 29, 2024

This simplifies the code by using more a expressive method, removing the need for helper variables.

This simplifies the code by using more a expressive method, removing the
need for helper variables.
Copy link
Contributor

@adamruzicka adamruzicka left a comment

Choose a reason for hiding this comment

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

I always wondered why it was written the way it was, I definitely won't mind not having to wonder about it anymore

@adamruzicka adamruzicka merged commit 3d11c47 into theforeman:master Aug 29, 2024
8 checks passed
@adamruzicka
Copy link
Contributor

Thank you @ekohl !

@ekohl ekohl deleted the use-more-expressive-enumerable-methods branch August 29, 2024 14:55
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.

2 participants