mruby-set: simplify initialize method return flow

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-06-26 10:37:09 +09:00
parent 6db72e01fe
commit 62affa290f
+1 -1
View File
@@ -5,10 +5,10 @@ class Set
if block
__do_with_enum(enum) { add(block.call(_1)) }
self
else
merge(enum)
end
self
end
# internal method