Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbogem <albertnigma@gmail.com>2016-08-30 20:20:39 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-11 13:23:09 +0300
commit2294b0226da244e6a4bb1f67abc47f88f7e67d2d (patch)
tree8101af39f93c8fb820fa1445820cb494a5091742 /commands
parent1e180873568ae6edf65dc95c47a3f70f601bcc9e (diff)
commands: Simplify err condition
Diffstat (limited to 'commands')
-rw-r--r--commands/hugo.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index ce6425489..628219be3 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -551,11 +551,7 @@ func copyStatic() error {
// because we are using a baseFs (to get the union right).
// set sync src to root
- err := syncer.Sync(publishDir, helpers.FilePathSeparator)
- if err != nil {
- return err
- }
- return nil
+ return syncer.Sync(publishDir, helpers.FilePathSeparator)
}
// getDirList provides NewWatcher() with a list of directories to watch for changes.