From 45f8d971317422de704beeb901fda899c71e96df Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 17 Mar 2022 19:04:36 +0100 Subject: [PATCH] nit fix (#19116) --- models/migrations/migrations.go | 3 +++ modules/markup/html.go | 3 +-- 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} } }