From 09ab207375a3c357a9cf70210a053090d774b7ae Mon Sep 17 00:00:00 2001 From: Adrian Maurer Date: Tue, 21 Sep 2021 10:27:11 -0400 Subject: [PATCH] fix: lint --- viper.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/viper.go b/viper.go index e6e18e8..71bdac4 100644 --- a/viper.go +++ b/viper.go @@ -1635,7 +1635,6 @@ func (v *Viper) unmarshalReader(in io.Reader, c map[string]interface{}) error { buf.ReadFrom(in) switch format := strings.ToLower(v.getConfigType()); format { - case "yaml", "yml", "json", "cue", "toml", "hcl", "tfvars": err := decoderRegistry.Decode(format, buf.Bytes(), &c) if err != nil { @@ -1693,7 +1692,6 @@ func (v *Viper) unmarshalReader(in io.Reader, c map[string]interface{}) error { func (v *Viper) marshalWriter(f afero.File, configType string) error { c := v.AllSettings() switch configType { - case "yaml", "yml", "json", "cue", "toml", "hcl", "tfvars": b, err := encoderRegistry.Encode(configType, c) if err != nil {