style: format codebase

This commit is contained in:
krau
2026-08-11 08:47:35 +08:00
parent e49ebef977
commit 7e3e26fcf4
9 changed files with 41 additions and 50 deletions

View File

@@ -1,6 +1,8 @@
package tcbdata
import (
"slices"
"github.com/krau/SaveAny-Bot/pkg/enums/tasktype"
"github.com/krau/SaveAny-Bot/pkg/parser"
"github.com/krau/SaveAny-Bot/pkg/telegraph"
@@ -31,12 +33,7 @@ func ConflictStrategyValues() []string {
}
func IsConflictStrategy(strategy string) bool {
for _, value := range ConflictStrategyValues() {
if strategy == value {
return true
}
}
return false
return slices.Contains(ConflictStrategyValues(), strategy)
}
// type TaskDataTGFiles struct {