[graph] Early return from a function

This commit is contained in:
Behdad Esfahbod 2023-07-15 13:13:16 -06:00
parent 09706b04fc
commit 548230e45e

View file

@ -213,7 +213,10 @@ struct graph_t
for (unsigned i = 0; i < count; i++)
{
if (parents.arrayZ[i] == old_index)
parents.arrayZ[i] = new_index;
{
parents.arrayZ[i] = new_index;
break;
}
}
}