bump to go 1.23 (#31855)

This commit is contained in:
techknowlogick authored and GitHub committed 2024-09-10 02:23:07 +00:00
1 parent 1620e3f03b
commit d9a7748cdc
27 files changed
+71 -58

No files matched your search

+1 -1
View File
@@ -766,7 +766,7 @@ func EditPullRequest(ctx *context.APIContext) {
// update allow edits
if form.AllowMaintainerEdit != nil {
if err := pull_service.SetAllowEdits(ctx, ctx.Doer, pr, *form.AllowMaintainerEdit); err != nil {
if errors.Is(pull_service.ErrUserHasNoPermissionForAction, err) {
if errors.Is(err, pull_service.ErrUserHasNoPermissionForAction) {
ctx.Error(http.StatusForbidden, "SetAllowEdits", fmt.Sprintf("SetAllowEdits: %s", err))
return
}