Skip to content

Commit

Permalink
nit fix (go-gitea#19116)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored and Stelios Malathouras committed Mar 28, 2022
1 parent e86f1f2 commit 389e7a8
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 389e7a8

Please sign in to comment.