Skip to content

Commit bdd090a

Browse files
committed
Unused return value of map
1 parent c0f16c1 commit bdd090a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/core_ext/module/delegation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def delegate(*methods, to: nil, prefix: nil, allow_nil: nil, private: nil)
193193
method_def = []
194194
method_names = []
195195

196-
methods.map do |method|
196+
methods.each do |method|
197197
method_name = prefix ? "#{method_prefix}#{method}" : method
198198
method_names << method_name.to_sym
199199

0 commit comments

Comments
 (0)