mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-12 22:43:28 +00:00
Web editor: improve code quality
This commit is contained in:
1 parent
67fb0fe6a5
commit
f8a48ffaad
19 files changed
+75
-81
No files matched your search
@@ -56,7 +56,7 @@ func Home(ctx *context.Context) {
|
||||
uploadFileLink := ctx.Repo.RepoLink + "/upload/" + branchName
|
||||
|
||||
// Get tree path
|
||||
treename := ctx.Repo.TreeName
|
||||
treename := ctx.Repo.TreePath
|
||||
|
||||
if len(treename) > 0 {
|
||||
if treename[len(treename)-1] == '/' {
|
||||
|
||||
Reference in new issue
Block a user