diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-11-21 22:57:54 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-11-21 22:57:54 +0900 |
| commit | 761868b693e2c034148c32bb7fba182a0b381d44 (patch) | |
| tree | 29acde6265f2848466f136d55aa92af90a704f85 /userdiff.c | |
| parent | 04b9bdbe163f891852775af8cd97434fd828902e (diff) | |
| parent | d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2 (diff) | |
| download | git-761868b693e2c034148c32bb7fba182a0b381d44.tar.xz | |
Merge branch 'tb/void-check-attr' into maint
Code clean-up.
* tb/void-check-attr:
Make git_check_attr() a void function
Diffstat (limited to 'userdiff.c')
| -rw-r--r-- | userdiff.c | 3 |
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; |
