From 17e61a151abbbdee02d7e5ee1f2a3ae412baa75e Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 15 Jul 2026 23:47:38 +0200 Subject: [PATCH] satisfy linter --- pkg/es/index.go | 1 - pkg/es/index_template.go | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/es/index.go b/pkg/es/index.go index 2908bf7..3222ac9 100644 --- a/pkg/es/index.go +++ b/pkg/es/index.go @@ -62,7 +62,6 @@ func filterIndices(conf *cfg.Config, list indices.Response) indices.Response { } return mapmap.NewSlicer(list).MapSliceValuesImmutable(func(index types.IndicesRecord) bool { - fmt.Println(*index.Index) if strings.HasPrefix(*index.Index, ".ds-") { // ignore data stream backing indicies return false diff --git a/pkg/es/index_template.go b/pkg/es/index_template.go index cec4652..49f6252 100644 --- a/pkg/es/index_template.go +++ b/pkg/es/index_template.go @@ -95,9 +95,7 @@ func filterIndexTemplates(conf *cfg.Config, nameFilter string, if len(conf.Filter) > 0 { if !mapmap.NewSlicer(tpl.IndexTemplate.IndexPatterns). - FindSliceInSlice(conf.Filter, func(val, find string) bool { - return strings.Contains(val, find) - }) { + FindSliceInSlice(conf.Filter, strings.Contains) { return false } }