Skip to content

Commit 60faa63

Browse files
Colin StolleyEdward Thomson
andcommitted
Drop redundant check in packed_set_peeling_mode().
Co-authored-by: Edward Thomson <ethomson@github.com>
1 parent d86b9f7 commit 60faa63

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/refdb_fs.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,6 @@ static char *packed_set_peeling_mode(
460460
char *eol;
461461
backend->peeling_mode = PEELING_NONE;
462462

463-
if (data_sz == 0 || *data != '#') {
464-
return data;
465-
}
466-
467463
if (git__prefixncmp(data, data_sz, traits_header) == 0) {
468464
size_t hdr_sz = strlen(traits_header);
469465
const char *sorted = " sorted ";

0 commit comments

Comments
 (0)