aboutsummaryrefslogtreecommitdiffstats
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
parentfa73cbf5a7e84fab50ad5c8f3095b4dec8b4e879 (diff)
downloadgitea-45f8d971317422de704beeb901fda899c71e96df.tar.gz
gitea-45f8d971317422de704beeb901fda899c71e96df.zip
nit fix (#19116)
-rw-r--r--models/migrations/migrations.go3
-rw-r--r--modules/markup/html.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 5ed358822b..3c8edb8eaf 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -373,6 +373,9 @@ var migrations = []Migration{
NewMigration("Increase WebAuthentication CredentialID size to 410 - NO-OPED", increaseCredentialIDTo410),
// v210 -> v211
NewMigration("v208 was completely broken - remigrate", remigrateU2FCredentials),
+
+ // Gitea 1.16.2 ends at v211
+
// v211 -> v212
NewMigration("Create ForeignReference table", createForeignReferenceTable),
}
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}
}
}