aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo/repo_unit.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo/repo_unit.go')
-rw-r--r--models/repo/repo_unit.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/repo/repo_unit.go b/models/repo/repo_unit.go
index cf9ff93d32..b8804c6df1 100644
--- a/models/repo/repo_unit.go
+++ b/models/repo/repo_unit.go
@@ -6,6 +6,7 @@ package repo
import (
"context"
"fmt"
+ "slices"
"strings"
"code.gitea.io/gitea/models/db"
@@ -176,7 +177,7 @@ func (cfg *ActionsConfig) ToString() string {
}
func (cfg *ActionsConfig) IsWorkflowDisabled(file string) bool {
- return util.SliceContains(cfg.DisabledWorkflows, file)
+ return slices.Contains(cfg.DisabledWorkflows, file)
}
func (cfg *ActionsConfig) DisableWorkflow(file string) {