Skip to content

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

Created by: leocassarani

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.

Merge request reports