@matheusbsbs / matheus-bagliano / commits / 8c0b2bb636
Fork 0

diff.c cleanup

Removes conditional return. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

David Rientjes committed Aug 14, 2006 at 13:34 UTC 8c0b2bb636c15a1cd0adb8bcf3b42497d699c884
1 file changed +1 -3
diff.c
+1 -3
@@ -904,9 +904,7 @@ static int mmfile_is_binary(mmfile_t *mf)
904 long sz = mf->size;
905 if (FIRST_FEW_BYTES < sz)
906 sz = FIRST_FEW_BYTES;
907 - if (memchr(mf->ptr, 0, sz))
908 - return 1;
909 - return 0;
907 + return !!memchr(mf->ptr, 0, sz);
908 }
909
910 static void builtin_diff(const char *name_a,