]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
filter: return on null filter from open and close
[ps-cgit] / ui-repolist.c
index 7b1fec307f2f0927034d9b8299d2bd9a379730cb..f9cb21afb4c467c3cfc5fcf2737610342aa177f6 100644 (file)
@@ -333,9 +333,7 @@ void cgit_print_site_readme()
 {
        if (!ctx.cfg.root_readme)
                return;
-       if (ctx.cfg.about_filter)
-               cgit_open_filter(ctx.cfg.about_filter, ctx.cfg.root_readme);
+       cgit_open_filter(ctx.cfg.about_filter, ctx.cfg.root_readme);
        html_include(ctx.cfg.root_readme);
-       if (ctx.cfg.about_filter)
-               cgit_close_filter(ctx.cfg.about_filter);
+       cgit_close_filter(ctx.cfg.about_filter);
 }