aboutsummaryrefslogtreecommitdiff
path: root/userdiff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-09-24 10:30:45 -0700
committerJunio C Hamano <gitster@pobox.com>2018-09-24 10:30:45 -0700
commit10de0f802db2d1ca6a157a7fe3eedb63191e4af5 (patch)
treeb0b0807cbbdf0c0545e21d413529f51e5fc15d36 /userdiff.c
parent87ae8a1a950da28a2f75570ecaecbc9cd439c64c (diff)
parentd64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2 (diff)
downloadgit-10de0f802db2d1ca6a157a7fe3eedb63191e4af5.tar.xz
Merge branch 'tb/void-check-attr'
Code clean-up. * tb/void-check-attr: Make git_check_attr() a void function
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 f3f4be579c..f565f6731d 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;