]> git.ipfire.org Git - thirdparty/git.git/blobdiff - diff.c
Clean up find_unique_abbrev() callers
[thirdparty/git.git] / diff.c
diff --git a/diff.c b/diff.c
index ad16164232f22207c2aa52c3b8c6ed4dcc3067b1..b80f656fb96cc2bfaa2bd1a8eedd0ee412363bd7 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -2581,8 +2581,6 @@ const char *diff_unique_abbrev(const unsigned char *sha1, int len)
                return sha1_to_hex(sha1);
 
        abbrev = find_unique_abbrev(sha1, len);
-       if (!abbrev)
-               return sha1_to_hex(sha1);
        abblen = strlen(abbrev);
        if (abblen < 37) {
                static char hex[41];