[graph] Early return from a function

pull/4324/head
Behdad Esfahbod 1 year ago
parent 09706b04fc
commit 548230e45e
  1. 5
      src/graph/graph.hh

@ -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;
}
}
}

Loading…
Cancel
Save