aboutsummaryrefslogtreecommitdiffstats
path: root/modules/markup
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2022-03-17 19:04:36 +0100
committerGitHub <noreply@github.com>2022-03-17 20:04:36 +0200
commit45f8d971317422de704beeb901fda899c71e96df (patch)
treef5993485461fbf17090deaa8e826a9565d2ec751 /modules/markup
parentfa73cbf5a7e84fab50ad5c8f3095b4dec8b4e879 (diff)
downloadgitea-45f8d971317422de704beeb901fda899c71e96df.tar.gz
gitea-45f8d971317422de704beeb901fda899c71e96df.zip
nit fix (#19116)
Diffstat (limited to 'modules/markup')
-rw-r--r--modules/markup/html.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/markup/html.go b/modules/markup/html.go
index 758746ef87..87d05dcabb 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -348,8 +348,7 @@ func postProcess(ctx *RenderContext, procs []processor, input io.Reader, output
// Render everything to buf.
for _, node := range newNodes {
- err = html.Render(output, node)
- if err != nil {
+ if err := html.Render(output, node); err != nil {
return &postProcessError{"error rendering processed HTML", err}
}
}