summaryrefslogtreecommitdiff
path: root/id_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'id_table.c')
-rw-r--r--id_table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/id_table.c b/id_table.c
index 47edefc844..a6c8e909b6 100644
--- a/id_table.c
+++ b/id_table.c
@@ -281,7 +281,8 @@ rb_id_table_foreach_with_replace(struct rb_id_table *tbl, rb_id_table_foreach_fu
VALUE val = tbl->items[i].val;
ret = (*replace)(Qundef, &val, data, TRUE);
tbl->items[i].val = val;
- } else if (ret == ID_TABLE_STOP)
+ }
+ else if (ret == ID_TABLE_STOP)
return;
}
}