configure golangci-lint
1 file changed, 4 insertions(+), 2 deletions(-)
changed files
M routes/util.go → routes/util.go
@@ -9,14 +9,15 @@ "path/filepath" "slices" "strings" + "alin.ovh/elgit/data" + "alin.ovh/elgit/git" securejoin "github.com/cyphar/filepath-securejoin" "github.com/dimfeld/httptreemux/v5" - "alin.ovh/elgit/data" - "alin.ovh/elgit/git" ) func isGoModule(gr *git.GitRepo) bool { _, err := gr.FileContent("go.mod") + return err == nil }@@ -31,6 +32,7 @@ desc = string(db) } else { desc = "" } + return }