builtin-grep.c cleanup
Removes conditional return. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
b4e275992f
commit
b756776d19
@ -390,9 +390,7 @@ static int buffer_is_binary(const char *ptr, unsigned long size)
|
|||||||
{
|
{
|
||||||
if (FIRST_FEW_BYTES < size)
|
if (FIRST_FEW_BYTES < size)
|
||||||
size = FIRST_FEW_BYTES;
|
size = FIRST_FEW_BYTES;
|
||||||
if (memchr(ptr, 0, size))
|
return !!memchr(ptr, 0, size);
|
||||||
return 1;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fixmatch(const char *pattern, char *line, regmatch_t *match)
|
static int fixmatch(const char *pattern, char *line, regmatch_t *match)
|
||||||
|
Reference in New Issue
Block a user