mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
commands, tpl: Get rid of repeating viper accesses
* all: Delete some blank lines * commands, tpl: Get rid of repeating viper accesses
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
4b4ab47553
commit
85a2d81e3c
@@ -426,7 +426,6 @@ func watchConfig() {
|
||||
}
|
||||
|
||||
func build(watches ...bool) error {
|
||||
|
||||
// Hugo writes the output to memory instead of the disk
|
||||
// This is only used for benchmark testing. Cause the content is only visible
|
||||
// in memory
|
||||
@@ -786,7 +785,7 @@ func NewWatcher(port int) error {
|
||||
jww.FEEDBACK.Printf("Syncing all static files\n")
|
||||
err := copyStatic()
|
||||
if err != nil {
|
||||
utils.StopOnErr(err, fmt.Sprintf("Error copying static files to %s", helpers.AbsPathify(viper.GetString("publishDir"))))
|
||||
utils.StopOnErr(err, fmt.Sprintf("Error copying static files to %s", publishDir))
|
||||
}
|
||||
} else {
|
||||
staticSourceFs := getStaticSourceFs()
|
||||
|
Reference in New Issue
Block a user