ref: 2294b0226da244e6a4bb1f67abc47f88f7e67d2d
parent: 1e180873568ae6edf65dc95c47a3f70f601bcc9e
author: bogem <[email protected]>
date: Tue Aug 30 18:20:39 EDT 2016
commands: Simplify err condition
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -551,11 +551,7 @@
// 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.