commands: Simplify
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Nov 2016 17:55:51 +0000 (18:55 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Nov 2016 17:55:51 +0000 (18:55 +0100)
commands/hugo.go

index a3654914270538694095e78bd8643c033979519f..72296fd32cf4c7c3b0d82777cd8e1aa60f9bdc21 100644 (file)
@@ -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)