mirror of
https://codeberg.org/scip/esctl.git
synced 2026-08-25 01:24:18 +02:00
fix linting issues
This commit is contained in:
@@ -114,9 +114,9 @@ func (conf *Config) Init() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (conf *Config) PrintDebug() error {
|
func (conf *Config) PrintDebug() {
|
||||||
if !conf.Debug {
|
if !conf.Debug {
|
||||||
return nil
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
clone := *conf
|
clone := *conf
|
||||||
@@ -128,8 +128,6 @@ func (conf *Config) PrintDebug() error {
|
|||||||
|
|
||||||
fmt.Println("config:")
|
fmt.Println("config:")
|
||||||
repr.Println(clone)
|
repr.Println(clone)
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (conf *Config) LoadEnv() error {
|
func (conf *Config) LoadEnv() error {
|
||||||
|
|||||||
@@ -90,11 +90,7 @@ func ClusterSettingsList(conf *cfg.Config) error {
|
|||||||
slog.Debug("settings", topic, paths)
|
slog.Debug("settings", topic, paths)
|
||||||
|
|
||||||
for setting, value := range paths {
|
for setting, value := range paths {
|
||||||
entries = append(entries, []string{
|
entries = append(entries, []string{setting, fmt.Sprintf("%v", value)})
|
||||||
fmt.Sprintf("%s", setting),
|
|
||||||
fmt.Sprintf("%v", value),
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user