mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
commands: Simplify err condition
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
1e18087356
commit
2294b0226d
@@ -551,11 +551,7 @@ func copyStatic() error {
|
|||||||
|
|
||||||
// because we are using a baseFs (to get the union right).
|
// because we are using a baseFs (to get the union right).
|
||||||
// set sync src to root
|
// set sync src to root
|
||||||
err := syncer.Sync(publishDir, helpers.FilePathSeparator)
|
return syncer.Sync(publishDir, helpers.FilePathSeparator)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// getDirList provides NewWatcher() with a list of directories to watch for changes.
|
// getDirList provides NewWatcher() with a list of directories to watch for changes.
|
||||||
|
Reference in New Issue
Block a user