From 62affa290fbc29f8afb494e1b0b61aa61c55fcc4 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 26 Jun 2025 10:37:09 +0900 Subject: [PATCH] mruby-set: simplify initialize method return flow --- mrbgems/mruby-set/mrblib/set.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-set/mrblib/set.rb b/mrbgems/mruby-set/mrblib/set.rb index b132ac660..e768fbc9b 100644 --- a/mrbgems/mruby-set/mrblib/set.rb +++ b/mrbgems/mruby-set/mrblib/set.rb @@ -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