From 0094837ad48f1e66c3beab3ec8515472268a157e Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 17 Mar 2022 17:35:43 +0100 Subject: [PATCH 1/2] nit fix --- modules/markup/html.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/markup/html.go b/modules/markup/html.go index 758746ef8794e..87d05dcabbe2a 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} } } From d4c8448fa5412c5bbec8a61e680fc5088cb2203b Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 17 Mar 2022 18:11:20 +0100 Subject: [PATCH 2/2] unrelated code docs nit --- models/migrations/migrations.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 5ed358822b689..3c8edb8eaf8ed 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), }