aboutsummaryrefslogtreecommitdiffstats
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
commit3de598c97ad098653a5cd0f18257020c92afea9e (patch)
tree2ab5d3d79e35ccfc85abe5855ec19583c610d7fa /vm.c
parent6c1cf91743efcf0b1dd8c7a313d954fb1784c1d5 (diff)
downloadruby-3de598c97ad098653a5cd0f18257020c92afea9e.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.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();
}