mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 18:15:45 +00:00
commands: Simplify
This commit is contained in:
1 parent
65e5959bad
commit
4c72eb12dc
1 file changed
+1
-1
+1
-1
@@ -317,7 +317,7 @@ func InitializeConfig(subCmdVs ...*cobra.Command) error {
|
|||||||
}
|
}
|
||||||
isDir, err := helpers.DirExists(cacheDir, hugofs.Source())
|
isDir, err := helpers.DirExists(cacheDir, hugofs.Source())
|
||||||
utils.CheckErr(err)
|
utils.CheckErr(err)
|
||||||
if isDir == false {
|
if !isDir {
|
||||||
mkdir(cacheDir)
|
mkdir(cacheDir)
|
||||||
}
|
}
|
||||||
viper.Set("cacheDir", cacheDir)
|
viper.Set("cacheDir", cacheDir)
|
||||||
|
|||||||
Reference in new issue
Block a user