diff options
Diffstat (limited to 'routes')
-rw-r--r-- | routes/util.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/routes/util.go b/routes/util.go index 27c26ce..7d444d0 100644 --- a/routes/util.go +++ b/routes/util.go @@ -17,11 +17,7 @@ func isGoModule(gr *git.GitRepo) bool { } func getDisplayName(name string) string { - l := len(name) - 4 - if name[l:] == ".git" { - name = name[:l] - } - return name + return strings.TrimSuffix(name, ".git") } func getDescription(path string) (desc string) { |