ci: remove goconst
This commit is contained in:
6 files changed
+5
-11
No files matched your search
+2
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user