1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vm.c: unnecessary condition

* vm.c (vm_stat): remove unnecessary condition, when argc != 1 arg
  is always Qnil.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-08-30 07:29:59 +00:00
parent c2d77880c0
commit f9e75e1a82

2
vm.c
View file

@ -396,7 +396,7 @@ vm_stat(int argc, VALUE *argv, VALUE self)
else
rb_raise(rb_eTypeError, "non-hash or symbol given");
}
else if (NIL_P(arg)) {
else {
hash = rb_hash_new();
}