satisfy linter (#98)

This commit is contained in:
T. von Dein
2026-07-15 23:57:02 +02:00
parent 00c5d79794
commit d69984b01f
2 changed files with 1 additions and 4 deletions

View File

@@ -62,7 +62,6 @@ func filterIndices(conf *cfg.Config, list indices.Response) indices.Response {
} }
return mapmap.NewSlicer(list).MapSliceValuesImmutable(func(index types.IndicesRecord) bool { return mapmap.NewSlicer(list).MapSliceValuesImmutable(func(index types.IndicesRecord) bool {
fmt.Println(*index.Index)
if strings.HasPrefix(*index.Index, ".ds-") { if strings.HasPrefix(*index.Index, ".ds-") {
// ignore data stream backing indicies // ignore data stream backing indicies
return false return false

View File

@@ -95,9 +95,7 @@ func filterIndexTemplates(conf *cfg.Config, nameFilter string,
if len(conf.Filter) > 0 { if len(conf.Filter) > 0 {
if !mapmap.NewSlicer(tpl.IndexTemplate.IndexPatterns). if !mapmap.NewSlicer(tpl.IndexTemplate.IndexPatterns).
FindSliceInSlice(conf.Filter, func(val, find string) bool { FindSliceInSlice(conf.Filter, strings.Contains) {
return strings.Contains(val, find)
}) {
return false return false
} }
} }