satisfy linter

This commit is contained in:
2026-10-12 14:30:28 +02:00
parent 79892bc55b
commit 4e77573223
10 changed files with 61 additions and 52 deletions

View File

@@ -140,7 +140,7 @@ func InitConfig(output io.Writer) (*Config, error) {
}
// Load default values using the confmap provider.
if err := kloader.Load(confmap.Provider(map[string]interface{}{
if err := kloader.Load(confmap.Provider(map[string]any{
"template": template,
"outdir": DefaultOutdirTemplate,
"loglevel": "notice",
@@ -200,7 +200,6 @@ func InitConfig(output io.Writer) (*Config, error) {
// Load the config file[s]
for _, cfgfile := range configfiles {
path, err := os.Stat(cfgfile)
if err != nil {
// ignore non-existent files, but bail out on any other errors
if !os.IsNotExist(err) {