From 4c72eb12dca7011a0203e4bfcdb618a9d353cf8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 23 Nov 2016 18:55:51 +0100 Subject: [PATCH] commands: Simplify --- commands/hugo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)