mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-04 10:05:18 +02:00
fix groupSegmentWithTrailingSlash to return an empty string if gid <= 0
This commit is contained in:
parent
79bc3997fe
commit
4566939671
@ -681,6 +681,9 @@ func getGroupSegment(gid int64) string {
|
||||
}
|
||||
|
||||
func groupSegmentWithTrailingSlash(gid int64) string {
|
||||
if gid < 1 {
|
||||
return ""
|
||||
}
|
||||
return getGroupSegment(gid) + "/"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user