commands: Simplify

This commit is contained in:
Bjørn Erik Pedersen 2016-11-23 18:55:51 +01:00
parent 65e5959bad
commit 4c72eb12dc

View 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)