mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
enable staticcheck QFxxxx rules (#34064)
This commit is contained in:
1 parent
5564c39105
commit
2a59dfbd47
47 files changed
+179
-143
No files matched your search
@@ -36,9 +36,10 @@ func PathJoinRel(elem ...string) string {
|
||||
elems[i] = path.Clean("/" + e)
|
||||
}
|
||||
p := path.Join(elems...)
|
||||
if p == "" {
|
||||
switch p {
|
||||
case "":
|
||||
return ""
|
||||
} else if p == "/" {
|
||||
case "/":
|
||||
return "."
|
||||
}
|
||||
return p[1:]
|
||||
|
||||
Reference in new issue
Block a user