ci: remove goconst

This commit is contained in:
Henrique Dias
2025-06-27 08:03:11 +02:00
parent 1d494ff315
commit 8b8fb3343f
6 changed files with 5 additions and 11 deletions

View File

@@ -121,11 +121,11 @@ func marshal(filename string, data interface{}) error {
defer fd.Close()
switch ext := filepath.Ext(filename); ext {
case ".json": //nolint:goconst
case ".json":
encoder := json.NewEncoder(fd)
encoder.SetIndent("", " ")
return encoder.Encode(data)
case ".yml", ".yaml": //nolint:goconst
case ".yml", ".yaml":
encoder := yaml.NewEncoder(fd)
return encoder.Encode(data)
default: