summaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2018-09-12 19:32:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-12 22:15:34 (GMT)
commitd64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2 (patch)
treeee83da9cbe076b9456d1c04d22ed3d08be2f88dd /userdiff.c
parent1d4361b0f344188ab5eec6dcea01f61a3a3a1670 (diff)
downloadgit-d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2.zip
git-d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2.tar.gz
git-d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2.tar.bz2
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>
Diffstat (limited to 'userdiff.c')
-rw-r--r--userdiff.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/userdiff.c b/userdiff.c
index f3f4be5..f565f67 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -278,8 +278,7 @@ struct userdiff_driver *userdiff_find_by_path(const char *path)
check = attr_check_initl("diff", NULL);
if (!path)
return NULL;
- if (git_check_attr(&the_index, path, check))
- return NULL;
+ git_check_attr(&the_index, path, check);
if (ATTR_TRUE(check->items[0].value))
return &driver_true;