Skip to content

Commit b0d0cc4

Browse files
committed
reduce unnecessary subprocess
1 parent ba1bac7 commit b0d0cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/view_file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func prepareToRenderFile(ctx *context.Context, entry *git.TreeEntry) {
8989
isDisplayingSource := ctx.FormString("display") == "source"
9090
isDisplayingRendered := !isDisplayingSource
9191

92-
// Don't call any other repository functions with git.Repository until the dataRc closed to
92+
// Don't call any other repository functions depends on git.Repository until the dataRc closed to
9393
// avoid create unnecessary temporary cat file.
9494
buf, dataRc, fInfo, err := getFileReader(ctx, ctx.Repo.Repository.ID, blob)
9595
if err != nil {

0 commit comments

Comments
 (0)