Skip to content

Commit

Permalink
Remove references to viper in comments
Browse files Browse the repository at this point in the history
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
  • Loading branch information
bogdandrutu committed Jan 21, 2022
1 parent 459f156 commit 90d1d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions config/configmapprovider/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ func convert(propsStr []string, cfgMap *config.Map) error {
return err
}

// Create a map manually instead of using properties.Map() to allow env var expansion
// as used by original Viper-based config.Map.
// Create a map manually instead of using properties.Map() to not expand the env vars.
parsed := make(map[string]interface{}, props.Len())
for _, key := range props.Keys() {
value, _ := props.Get(key)
Expand Down
2 changes: 1 addition & 1 deletion internal/testcomponents/example_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type ExampleExporter struct {
ExtraListSetting []string `mapstructure:"extra_list"`
}

// Unmarshal a viper data into the config struct
// Unmarshal a config.Map data into the config struct
func (cfg *ExampleExporter) Unmarshal(componentParser *config.Map) error {
return componentParser.UnmarshalExact(cfg)
}
Expand Down

0 comments on commit 90d1d97

Please sign in to comment.