Skip to content

Commit

Permalink
Merge pull request #2913 from gkta/remove-duplicate-len-check
Browse files Browse the repository at this point in the history
Remove duplicated RARRAY_LEN check in ary_elt
  • Loading branch information
matz committed Aug 12, 2015
2 parents 1fd9dca + c7fad5a commit a173125
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/array.c
Expand Up @@ -19,7 +19,6 @@
static inline mrb_value
ary_elt(mrb_value ary, mrb_int offset)
{
if (RARRAY_LEN(ary) == 0) return mrb_nil_value();
if (offset < 0 || RARRAY_LEN(ary) <= offset) {
return mrb_nil_value();
}
Expand Down

0 comments on commit a173125

Please sign in to comment.