Skip to content

Commit 9e56dac

Browse files
committed
Remove superflous insensitiviseMaps in Unmarshal methods
Fixes #482
1 parent d104d25 commit 9e56dac

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

viper.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,6 @@ func (v *Viper) UnmarshalKey(key string, rawVal interface{}, opts ...DecoderConf
811811
return err
812812
}
813813

814-
v.insensitiviseMaps()
815-
816814
return nil
817815
}
818816

@@ -828,8 +826,6 @@ func (v *Viper) Unmarshal(rawVal interface{}, opts ...DecoderConfigOption) error
828826
return err
829827
}
830828

831-
v.insensitiviseMaps()
832-
833829
return nil
834830
}
835831

@@ -872,8 +868,6 @@ func (v *Viper) UnmarshalExact(rawVal interface{}) error {
872868
return err
873869
}
874870

875-
v.insensitiviseMaps()
876-
877871
return nil
878872
}
879873

@@ -1579,13 +1573,6 @@ func (v *Viper) WatchRemoteConfigOnChannel() error {
15791573
return v.watchKeyValueConfigOnChannel()
15801574
}
15811575

1582-
func (v *Viper) insensitiviseMaps() {
1583-
insensitiviseMap(v.config)
1584-
insensitiviseMap(v.defaults)
1585-
insensitiviseMap(v.override)
1586-
insensitiviseMap(v.kvstore)
1587-
}
1588-
15891576
// Retrieve the first found remote configuration.
15901577
func (v *Viper) getKeyValueConfig() error {
15911578
if RemoteConfig == nil {

0 commit comments

Comments
 (0)