summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-30 07:29:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-30 07:29:59 +0000
commitf9e75e1a8217091101cb0d818c961e1fc4e4a8d5 (patch)
tree2ab5d3d79e35ccfc85abe5855ec19583c610d7fa /vm.c
parentc2d77880c070fa94e6fe1e31e477225c13318933 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index f98b24e4e3..74226d7e32 100644
--- a/vm.c
+++ b/vm.c
@@ -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();
}