ruby-changes:63229
From: Marc-Andre <ko1@a...>
Date: Thu, 1 Oct 2020 07:11:47 +0900 (JST)
Subject: [ruby-changes:63229] 152ba86b6b (master): [ruby/ostruct] Remove unused condition
https://git.ruby-lang.org/ruby.git/commit/?id=152ba86b6b From 152ba86b6b6b01bc2594ca8fcf4873ba13e36eef Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune <github@m...> Date: Sat, 26 Sep 2020 01:53:36 -0400 Subject: [ruby/ostruct] Remove unused condition diff --git a/lib/ostruct.rb b/lib/ostruct.rb index 4ecffb0..a878e81 100644 --- a/lib/ostruct.rb +++ b/lib/ostruct.rb @@ -239,8 +239,6 @@ class OpenStruct https://github.com/ruby/ruby/blob/trunk/lib/ostruct.rb#L239 end set_ostruct_member_value!(mname, args[0]) elsif len == 0 - elsif @table.key?(mid) - raise! ArgumentError, "wrong number of arguments (given #{len}, expected 0)" else begin super -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/