ruby-changes:43966
From: nobu <ko1@a...>
Date: Tue, 30 Aug 2016 16:30:04 +0900 (JST)
Subject: [ruby-changes:43966] nobu:r56039 (trunk): vm.c: unnecessary condition
nobu 2016-08-30 16:29:59 +0900 (Tue, 30 Aug 2016) New Revision: 56039 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56039 Log: vm.c: unnecessary condition * vm.c (vm_stat): remove unnecessary condition, when argc != 1 arg is always Qnil. Modified files: trunk/vm.c Index: vm.c =================================================================== --- vm.c (revision 56038) +++ vm.c (revision 56039) @@ -396,7 +396,7 @@ vm_stat(int argc, VALUE *argv, VALUE sel https://github.com/ruby/ruby/blob/trunk/vm.c#L396 else rb_raise(rb_eTypeError, "non-hash or symbol given"); } - else if (NIL_P(arg)) { + else { hash = rb_hash_new(); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/