diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-30 07:29:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-30 07:29:59 +0000 |
commit | f9e75e1a8217091101cb0d818c961e1fc4e4a8d5 (patch) | |
tree | 2ab5d3d79e35ccfc85abe5855ec19583c610d7fa /vm.c | |
parent | c2d77880c070fa94e6fe1e31e477225c13318933 (diff) | |
download | ruby-f9e75e1a8217091101cb0d818c961e1fc4e4a8d5.tar.gz |
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
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); } |