mruby-enum-ext: add parentheses to respond_to? call

added parentheses to respond_to? call where the return value is used.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-04 20:56:52 +09:00
parent 676ab238a2
commit 4dedb120c8
+1 -1
View File
@@ -273,7 +273,7 @@ module Enumerable
ary = []
self.each do |*e|
e2 = block.call(*e)
if e2.respond_to? :each
if e2.respond_to?(:each)
e2.each {|e3| ary.push(e3) }
else
ary.push(e2)