mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-array-ext (ary_compact_bang): skip check that is always true
This commit is contained in:
@@ -227,7 +227,7 @@ ary_compact_bang(mrb_state *mrb, mrb_value self)
|
||||
}
|
||||
}
|
||||
if (i == j) return mrb_nil_value();
|
||||
if (j < len) ARY_SET_LEN(RARRAY(self), j);
|
||||
ARY_SET_LEN(RARRAY(self), j);
|
||||
return self;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user