chore: lint codes

This commit is contained in:
Jason Song committed 2023-01-05 12:14:56 +08:00
1 parent 24446cbebe
commit 60173297aa
3 files changed
+2 -4

No files matched your search

-1
View File
@@ -124,7 +124,6 @@ func RunnerDetailsEditPost(ctx *context.Context, runnerID, ownerID, repoID int64
return
}
if !runner.Editable(ownerID, repoID) {
err = errors.New("no permission to edit this runner")
ctx.NotFound("RunnerDetailsEditPost.Editable", util.NewPermissionDeniedErrorf("no permission to edit this runner"))
return
}