Skip to content

Commit

Permalink
Remove superflous insensitiviseMaps in Unmarshal methods
Browse files Browse the repository at this point in the history
Fixes #482
  • Loading branch information
bep committed Mar 13, 2019
1 parent d104d25 commit 9e56dac
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,6 @@ func (v *Viper) UnmarshalKey(key string, rawVal interface{}, opts ...DecoderConf
return err
}

v.insensitiviseMaps()

return nil
}

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

v.insensitiviseMaps()

return nil
}

Expand Down Expand Up @@ -872,8 +868,6 @@ func (v *Viper) UnmarshalExact(rawVal interface{}) error {
return err
}

v.insensitiviseMaps()

return nil
}

Expand Down Expand Up @@ -1579,13 +1573,6 @@ func (v *Viper) WatchRemoteConfigOnChannel() error {
return v.watchKeyValueConfigOnChannel()
}

func (v *Viper) insensitiviseMaps() {
insensitiviseMap(v.config)
insensitiviseMap(v.defaults)
insensitiviseMap(v.override)
insensitiviseMap(v.kvstore)
}

// Retrieve the first found remote configuration.
func (v *Viper) getKeyValueConfig() error {
if RemoteConfig == nil {
Expand Down

0 comments on commit 9e56dac

Please sign in to comment.