From a209debe09c3418e26950e340d8fd341ad74d1e0 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 11 May 2026 10:46:17 +0200 Subject: [PATCH] fix linting issues --- pkg/cfg/config.go | 6 ++---- pkg/es/cluster_settings.go | 6 +----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/pkg/cfg/config.go b/pkg/cfg/config.go index ed518f0..062caf6 100644 --- a/pkg/cfg/config.go +++ b/pkg/cfg/config.go @@ -114,9 +114,9 @@ func (conf *Config) Init() error { return nil } -func (conf *Config) PrintDebug() error { +func (conf *Config) PrintDebug() { if !conf.Debug { - return nil + return } clone := *conf @@ -128,8 +128,6 @@ func (conf *Config) PrintDebug() error { fmt.Println("config:") repr.Println(clone) - - return nil } func (conf *Config) LoadEnv() error { diff --git a/pkg/es/cluster_settings.go b/pkg/es/cluster_settings.go index 2cf3b9f..f09e01a 100644 --- a/pkg/es/cluster_settings.go +++ b/pkg/es/cluster_settings.go @@ -90,11 +90,7 @@ func ClusterSettingsList(conf *cfg.Config) error { slog.Debug("settings", topic, paths) for setting, value := range paths { - entries = append(entries, []string{ - fmt.Sprintf("%s", setting), - fmt.Sprintf("%v", value), - }) - + entries = append(entries, []string{setting, fmt.Sprintf("%v", value)}) } }