Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Turn a #map into #each where the return value is unused #2111

Merged
merged 1 commit into from
Nov 9, 2015

Conversation

leocassarani
Copy link
Contributor

The return value of RubyProject.add_to_load_path is neither useful nor used anywhere. In this case, #each communicates intent better than #map.

Shout out to @scottmatthewman for highlighting this method at the November 2015 meeting of the London Ruby User Group.

The return value of RubyProject.add_to_load_path is neither useful nor
used anywhere. In this case, #each communicates intent better than #map.
soulcutter added a commit that referenced this pull request Nov 9, 2015
Turn a #map into #each where the return value is unused
@soulcutter soulcutter merged commit 78cf993 into rspec:master Nov 9, 2015
@soulcutter
Copy link
Member

Looks good to me

MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Turn a #map into #each where the return value is unused
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants