Skip to content

Commit 5795e5b

Browse files
committed
improve
1 parent 2041ab5 commit 5795e5b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

routers/web/repo/view.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ func renderDirectory(ctx *context.Context, treeLink string) {
142142
return
143143
}
144144

145-
renderDirectoryDefaultFile(ctx, entries, treeLink)
146-
}
147-
148-
// renderDirectoryDefaultFile render the default file when render a root directory or a sub directory
149-
func renderDirectoryDefaultFile(ctx *context.Context, entries git.Entries, treeLink string) {
150145
if ctx.Repo.TreePath != "" {
151146
ctx.Data["Title"] = ctx.Tr("repo.file.title", ctx.Repo.Repository.Name+"/"+path.Base(ctx.Repo.TreePath), ctx.Repo.RefName)
152147
}

0 commit comments

Comments
 (0)