diff --git a/id_table.c b/id_table.c index 6cf4af9c5f..a1b09ba0ed 100644 --- a/id_table.c +++ b/id_table.c @@ -317,7 +317,8 @@ rb_id_table_foreach_values_with_replace(struct rb_id_table *tbl, rb_id_table_for ret = (*replace)(&val, data, TRUE); tbl->items[i].val = val; } - else if (ret == ID_TABLE_STOP) + + if (ret == ID_TABLE_STOP) return; } }