mirror of
https://github.com/spf13/viper
synced 2024-12-23 12:07:02 +00:00
Remove useless parenthesis
This commit is contained in:
parent
7da613aa94
commit
a925fa4053
1 changed files with 2 additions and 2 deletions
4
viper.go
4
viper.go
|
@ -1620,8 +1620,8 @@ func (v *Viper) marshalWriter(f afero.File, configType string) error {
|
||||||
err := fmt.Errorf("missing key for %s", key)
|
err := fmt.Errorf("missing key for %s", key)
|
||||||
return ConfigMarshalError{err}
|
return ConfigMarshalError{err}
|
||||||
}
|
}
|
||||||
sectionName := key[:(lastSep)]
|
sectionName := key[:lastSep]
|
||||||
keyName := key[(lastSep + 1):]
|
keyName := key[lastSep+1:]
|
||||||
if sectionName == "default" {
|
if sectionName == "default" {
|
||||||
sectionName = ""
|
sectionName = ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue