mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
commands: Simplify
This commit is contained in:
parent
65e5959bad
commit
4c72eb12dc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue