Skip to content

Commit 88caa65

Browse files
authored
fix lint
1 parent ba3032b commit 88caa65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/perm/access/repo_permission.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package access
55

66
import (
77
"context"
8+
"errors"
89
"fmt"
910
"slices"
1011

@@ -257,7 +258,7 @@ func finalProcessRepoUnitPermission(user *user_model.User, perm *Permission) {
257258
// GetActionsUserRepoPermission returns the actions user permissions to the repository
258259
func GetActionsUserRepoPermission(ctx context.Context, repo *repo_model.Repository, actionsUser *user_model.User, taskID int64) (perm Permission, err error) {
259260
if actionsUser.ID != user_model.ActionsUserID {
260-
return perm, fmt.Errorf("api GetActionsUserRepoPermission can only be called by the actions user")
261+
return perm, errors.New("api GetActionsUserRepoPermission can only be called by the actions user")
261262
}
262263
task, err := actions_model.GetTaskByID(ctx, taskID)
263264
if err != nil {

0 commit comments

Comments
 (0)