diff --git a/commands/hugo.go b/commands/hugo.go index a36549142..72296fd32 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -317,7 +317,7 @@ func InitializeConfig(subCmdVs ...*cobra.Command) error { } isDir, err := helpers.DirExists(cacheDir, hugofs.Source()) utils.CheckErr(err) - if isDir == false { + if !isDir { mkdir(cacheDir) } viper.Set("cacheDir", cacheDir)