diff options
Diffstat (limited to 'hugolib/config.go')
-rw-r--r-- | hugolib/config.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hugolib/config.go b/hugolib/config.go index 8c2e44c10..38cf6c3c1 100644 --- a/hugolib/config.go +++ b/hugolib/config.go @@ -256,8 +256,7 @@ func (l configLoader) loadConfig(configName string, v *viper.Viper) (string, err } var filename string - fileExt := helpers.ExtNoDelimiter(configName) - if fileExt != "" { + if helpers.ExtNoDelimiter(configName) != "" { exists, _ := helpers.Exists(baseFilename, l.Fs) if exists { filename = baseFilename @@ -268,7 +267,6 @@ func (l configLoader) loadConfig(configName string, v *viper.Viper) (string, err exists, _ := helpers.Exists(filenameToCheck, l.Fs) if exists { filename = filenameToCheck - fileExt = ext break } } |