Skip to content

Commit

Permalink
Add missing return to handleSettingRemoteAddrError (go-gitea#16794)
Browse files Browse the repository at this point in the history
Backport go-gitea#16794

There is a missing return in handleSettingRemoteAddrError which means
that the error page for repo settings is duplicately rendered.

Fix go-gitea#16771

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed Aug 23, 2021
1 parent f7e7477 commit ec6875f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routers/web/repo/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ func handleSettingRemoteAddrError(ctx *context.Context, err error, form *forms.R
default:
ctx.ServerError("Unknown error", err)
}
return
}
ctx.RenderWithErr(ctx.Tr("repo.mirror_address_url_invalid"), tplSettingsOptions, form)
}
Expand Down

0 comments on commit ec6875f

Please sign in to comment.