diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-05-06 00:09:56 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-05-06 00:09:56 +0200 |
commit | 00a9d697a86325cbc97cc9adc41b0829d21c3ea1 (patch) | |
tree | 64459f4066b1a7ecb72109d7d75257c3466e5f88 /object.c | |
parent | 86391a551737a4bafc8f30413da1a02daf58e180 (diff) |
Remove redundant check in rb_obj_cmp()
* rb_equal() already checks using `obj1 == obj2`.
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1726,7 +1726,7 @@ rb_obj_not_match(VALUE obj1, VALUE obj2) static VALUE rb_obj_cmp(VALUE obj1, VALUE obj2) { - if (obj1 == obj2 || rb_equal(obj1, obj2)) + if (rb_equal(obj1, obj2)) return INT2FIX(0); return Qnil; } |