mirror of
https://github.com/go-gitea/gitea
synced 2024-11-21 22:11:03 +01:00
refactor: remove redundant slash. (#1109)
This commit is contained in:
parent
c1d5983d3e
commit
0afab87631
1 changed files with 1 additions and 3 deletions
|
@ -583,9 +583,7 @@ please consider changing to GITEA_CUSTOM`)
|
|||
sec := Cfg.Section("server")
|
||||
AppName = Cfg.Section("").Key("APP_NAME").MustString("Gitea: Git with a cup of tea")
|
||||
AppURL = sec.Key("ROOT_URL").MustString("http://localhost:3000/")
|
||||
if AppURL[len(AppURL)-1] != '/' {
|
||||
AppURL += "/"
|
||||
}
|
||||
AppURL = strings.TrimRight(AppURL, "/") + "/"
|
||||
|
||||
// Check if has app suburl.
|
||||
url, err := url.Parse(AppURL)
|
||||
|
|
Loading…
Reference in a new issue