Skip to content

Commit

Permalink
Add missing return to handleSettingRemoteAddrError (go-gitea#16794)
Browse files Browse the repository at this point in the history
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 <art27@cantab.net>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
  • Loading branch information
zeripath and techknowlogick authored Aug 23, 2021
1 parent 1cd4a3b commit 921afb5
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 921afb5

Please sign in to comment.