Skip to content

Commit 01d0f05

Browse files
Fix lint issue
1 parent 9491405 commit 01d0f05

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (c *ConfReader) Read(configStruct interface{}) error {
7878

7979
c.viper.SetConfigFile(c.configName)
8080

81-
if c.configDirs == nil || len(c.configDirs) == 0 {
81+
if len(c.configDirs) == 0 {
8282
// Find home directory.
8383
home, err := os.UserHomeDir()
8484
if err != nil {

0 commit comments

Comments
 (0)