aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/issue.go')
-rw-r--r--routers/web/repo/issue.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go
index b6e6cef6d2..5bee8c76a9 100644
--- a/routers/web/repo/issue.go
+++ b/routers/web/repo/issue.go
@@ -965,10 +965,8 @@ func NewIssue(ctx *context.Context) {
_, templateErrs := issue_service.GetTemplatesFromDefaultBranch(ctx.Repo.Repository, ctx.Repo.GitRepo)
templateLoaded, errs := setTemplateIfExists(ctx, issueTemplateKey, IssueTemplateCandidates)
- if len(errs) > 0 {
- for k, v := range errs {
- templateErrs[k] = v
- }
+ for k, v := range errs {
+ templateErrs[k] = v
}
if ctx.Written() {
return