mruby-array-ext (ary_compact_bang): skip check that is always true

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-09-25 23:32:06 +09:00
parent f65229d103
commit 629a6839fd
+1 -1
View File
@@ -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;
}