]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-refs.c
ui-refs: remove unnecessary sanity check
[ps-cgit] / ui-refs.c
index 50d9d3002951760c4cf228d0cce6af7c016b9511..7b95e8b76324ffcf1374a392f9d71c81d29f671a 100644 (file)
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -97,9 +97,6 @@ static void print_tag_downloads(const struct cgit_repo *repo, const char *ref)
        struct strbuf filename = STRBUF_INIT;
        size_t prefixlen;
 
-       if (!ref || strlen(ref) < 1)
-               return;
-
        basename = cgit_snapshot_prefix(repo);
        if (starts_with(ref, basename))
                strbuf_addstr(&filename, ref);