We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9491405 commit 01d0f05Copy full SHA for 01d0f05
1 file changed
config.go
@@ -78,7 +78,7 @@ func (c *ConfReader) Read(configStruct interface{}) error {
78
79
c.viper.SetConfigFile(c.configName)
80
81
- if c.configDirs == nil || len(c.configDirs) == 0 {
+ if len(c.configDirs) == 0 {
82
// Find home directory.
83
home, err := os.UserHomeDir()
84
if err != nil {
0 commit comments