diff options
author | Colin Stolley <ccstolley@github.com> | 2022-01-13 17:32:48 -0600 |
---|---|---|
committer | Colin Stolley <ccstolley@github.com> | 2022-01-13 17:34:54 -0600 |
commit | 60faa6310e39bdd00f30f6a74e11902f80e18e18 (patch) | |
tree | 36bcd0f59fd7bf4aba5fc5ed4d04412dcabe06b6 | |
parent | d86b9f7990091bcdb6aec2c71c35e9afb728fbfd (diff) | |
download | libgit2-60faa6310e39bdd00f30f6a74e11902f80e18e18.tar.gz |
Drop redundant check in packed_set_peeling_mode().
Co-authored-by: Edward Thomson <ethomson@github.com>
-rw-r--r-- | src/refdb_fs.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/refdb_fs.c b/src/refdb_fs.c index 4d01adfde..98b25e89a 100644 --- a/src/refdb_fs.c +++ b/src/refdb_fs.c @@ -460,10 +460,6 @@ static char *packed_set_peeling_mode( char *eol; backend->peeling_mode = PEELING_NONE; - if (data_sz == 0 || *data != '#') { - return data; - } - if (git__prefixncmp(data, data_sz, traits_header) == 0) { size_t hdr_sz = strlen(traits_header); const char *sorted = " sorted "; |