summaryrefslogtreecommitdiffstats
path: root/routers/web/repo/issue.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-08-31 09:43:31 +0200
committerGitHub <noreply@github.com>2021-08-31 08:43:31 +0100
commitd21702475ba43100d3a6e9505a1ae259e4842524 (patch)
treea9163f924f3a0eedda389a557759854312a8b9f0 /routers/web/repo/issue.go
parentbb4cc876b1d0d5be5aa3fed7827ba3eac8f2ac18 (diff)
downloadgitea-d21702475ba43100d3a6e9505a1ae259e4842524.tar.gz
gitea-d21702475ba43100d3a6e9505a1ae259e4842524.zip
Fix git.Blob.DataAsync(): close pipe since we return a NopCloser (#16899)
* make sure headGitRepo is closed on err too * refactor * Fix git.Blob.DataAsync(): exec cancel since we already read all bytes (close pipe since we return a NopCloser)
Diffstat (limited to 'routers/web/repo/issue.go')
-rw-r--r--routers/web/repo/issue.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go
index 3f7af7a51f..bb3a0c8a9c 100644
--- a/routers/web/repo/issue.go
+++ b/routers/web/repo/issue.go
@@ -419,9 +419,6 @@ func RetrieveRepoMilestonesAndAssignees(ctx *context.Context, repo *models.Repos
}
handleTeamMentions(ctx)
- if ctx.Written() {
- return
- }
}
func retrieveProjects(ctx *context.Context, repo *models.Repository) {