Skip to content

Commit

Permalink
nit fix (#19116)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Mar 17, 2022
1 parent fa73cbf commit 45f8d97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions models/migrations/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down
3 changes: 1 addition & 2 deletions modules/markup/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
}
Expand Down

0 comments on commit 45f8d97

Please sign in to comment.