diff options
author | techknowlogick <techknowlogick@gitea.com> | 2024-09-09 22:23:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 02:23:07 +0000 |
commit | d9a7748cdc3f13392acbde87edd18602b566c216 (patch) | |
tree | 0f7191740e0335ccf61f12bb94d40ea36b7b0ed7 /routers/api/v1 | |
parent | 1620e3f03bad1feb22c8e9c3c9baf4da04aaefe5 (diff) | |
download | gitea-d9a7748cdc3f13392acbde87edd18602b566c216.tar.gz gitea-d9a7748cdc3f13392acbde87edd18602b566c216.zip |
bump to go 1.23 (#31855)
Diffstat (limited to 'routers/api/v1')
-rw-r--r-- | routers/api/v1/repo/pull.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go index de67057fdd..7eb4a8b8a2 100644 --- a/routers/api/v1/repo/pull.go +++ b/routers/api/v1/repo/pull.go @@ -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 } |