Skip to content

Commit ae40589

Browse files
committed
Add missing return to handleSettingRemoteAddrError
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]>
1 parent 73defbb commit ae40589

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/repo/setting.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ func handleSettingRemoteAddrError(ctx *context.Context, err error, form *forms.R
742742
default:
743743
ctx.ServerError("Unknown error", err)
744744
}
745+
return
745746
}
746747
ctx.RenderWithErr(ctx.Tr("repo.mirror_address_url_invalid"), tplSettingsOptions, form)
747748
}

0 commit comments

Comments
 (0)