Get rid of the utils package

This commit is contained in:
Bjørn Erik Pedersen
2018-07-22 00:34:17 +02:00
parent 4e1d0cd9f1
commit 062510cf1f
4 changed files with 42 additions and 65 deletions

View File

@@ -24,8 +24,6 @@ import (
"github.com/spf13/cobra"
"github.com/gohugoio/hugo/utils"
"github.com/spf13/afero"
"github.com/gohugoio/hugo/hugolib"
@@ -308,7 +306,7 @@ func (c *commandeer) loadConfig(mustHaveConfigFile, running bool) error {
cacheDir = cacheDir + helpers.FilePathSeparator
}
isDir, err := helpers.DirExists(cacheDir, sourceFs)
utils.CheckErr(cfg.Logger, err)
checkErr(cfg.Logger, err)
if !isDir {
mkdir(cacheDir)
}