Make git_check_attr() a void function
git_check_attr() returns always 0. Remove all the error handling code of the callers, which is never executed. Change git_check_attr() to be a void function. Signed-off-by: Torsten Bögershausen <tboegi@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
1d4361b0f3
commit
d64324cb60
@ -110,7 +110,8 @@ static const struct attr_check *get_archive_attrs(struct index_state *istate,
|
||||
static struct attr_check *check;
|
||||
if (!check)
|
||||
check = attr_check_initl("export-ignore", "export-subst", NULL);
|
||||
return git_check_attr(istate, path, check) ? NULL : check;
|
||||
git_check_attr(istate, path, check);
|
||||
return check;
|
||||
}
|
||||
|
||||
static int check_attr_export_ignore(const struct attr_check *check)
|
||||
|
Reference in New Issue
Block a user