mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-set: simplify initialize method return flow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user