ref-filter: get rid of goto
Get rid of goto command in ref-filter for better readability. Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com> Mentored-by: Christian Couder <christian.couder@gmail.com> Mentored by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
2bbc6e8a92
commit
edfb8ba068
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user