Skip to content

Commit

Permalink
Add missing return to handleSettingRemoteAddrError (#16794) (#16795)
Browse files Browse the repository at this point in the history
Backport #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 <[email protected]>

Co-authored-by: techknowlogick <[email protected]>
  • Loading branch information
zeripath and techknowlogick authored Aug 23, 2021
1 parent 37e4cdb commit 31e4e82
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 31e4e82

Please sign in to comment.