summaryrefslogtreecommitdiffstats
path: root/routers/web/repo
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-08-23 23:09:25 +0100
committerGitHub <noreply@github.com>2021-08-23 18:09:25 -0400
commit921afb57fb0a14e27c884c169b88f98056d3a38f (patch)
tree6304a8b489dc6120229bbcf3246d55f6446720fd /routers/web/repo
parent1cd4a3b963946d27620c48eb968dc81e5af432af (diff)
downloadgitea-921afb57fb0a14e27c884c169b88f98056d3a38f.tar.gz
gitea-921afb57fb0a14e27c884c169b88f98056d3a38f.zip
Add missing return to handleSettingRemoteAddrError (#16794)
There is a missing return in handleSettingRemoteAddrError which means that the error page for repo settings is duplicately rendered. Fix #16771 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/web/repo')
-rw-r--r--routers/web/repo/setting.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/repo/setting.go b/routers/web/repo/setting.go
index 20253a7cae..136e08cb47 100644
--- a/routers/web/repo/setting.go
+++ b/routers/web/repo/setting.go
@@ -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)
}