зеркало из https://github.com/microsoft/git.git
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:
Родитель
b4e275992f
Коммит
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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче