mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Replace util.SliceXxx
with slices.Xxx
(#26958)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user