1
1
mirror of https://github.com/go-gitea/gitea synced 2025-12-07 13:28:25 +00:00

Apply suggestions from code review

Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
Jason Song
2023-01-05 11:59:32 +08:00
committed by GitHub
parent 2ae7f5434c
commit b884772652
9 changed files with 13 additions and 32 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ func RunnerDetailsEditPost(ctx *context.Context, runnerID, ownerID, repoID int64
}
if !runner.Editable(ownerID, repoID) {
err = errors.New("no permission to edit this runner")
ctx.NotFound("RunnerDetailsEditPost.Editable", err)
ctx.NotFound("RunnerDetailsEditPost.Editable", util.NewPermissionDeniedErrorf("no permission to edit this runner"))
return
}