optimise file existence check
1 file changed, 2 insertions(+), 2 deletions(-)
changed files
M routes/util.go → routes/util.go
@@ -16,9 +16,9 @@ "github.com/savsgio/atreugo/v11" ) func isGoModule(gr *git.Repo) bool { - _, err := gr.FileContent("go.mod") + has, _ := gr.HasFile("go.mod") - return err == nil + return has } func getDisplayName(name string) string {