remove log message when missing readme
1 file changed, 3 insertions(+), 7 deletions(-)
changed files
M routes/routes.go → routes/routes.go
@@ -10,13 +10,13 @@ "path/filepath" "strconv" "strings" + "alin.ovh/elgit/config" + "alin.ovh/elgit/git" + "alin.ovh/elgit/templates" securejoin "github.com/cyphar/filepath-securejoin" "github.com/dimfeld/httptreemux/v5" "github.com/microcosm-cc/bluemonday" "github.com/russross/blackfriday/v2" - "alin.ovh/elgit/config" - "alin.ovh/elgit/git" - "alin.ovh/elgit/templates" ) type deps struct {@@ -83,10 +83,6 @@ readmeContent = fmt.Sprintf(`<pre>%s</pre>`, safe) } break } - } - - if readmeContent == "" { - log.Printf("no readme found for %s", name) } mainBranch, err := gr.FindMainBranch(d.c.Repo.MainBranch)