Commit edfb8ba0 authored by Olga Telezhnaya's avatar Olga Telezhnaya Committed by Junio C Hamano

ref-filter: get rid of goto

Get rid of goto command in ref-filter for better readability.
Signed-off-by: Olga Telezhnaya's avatarOlga Telezhnaia <[email protected]>
Mentored-by: Christian Couder's avatarChristian Couder <[email protected]>
Mentored by: Jeff King <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent 2bbc6e8a
......@@ -1494,11 +1494,11 @@ static void populate_value(struct ref_array_item *ref)
for (i = 0; i < used_atom_cnt; i++) {
struct atom_value *v = &ref->value[i];
if (v->s == NULL)
goto need_obj;
break;
}
return;
if (used_atom_cnt <= i)
return;
need_obj:
get_object(ref, &ref->objectname, 0, &obj);
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment