From: bogem Date: Tue, 30 Aug 2016 17:20:39 +0000 (+0500) Subject: commands: Simplify err condition X-Git-Tag: v0.17~88 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2294b0226da244e6a4bb1f67abc47f88f7e67d2d;p=brevno-suite%2Fhugo commands: Simplify err condition --- diff --git a/commands/hugo.go b/commands/hugo.go index ce642548..628219be 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.