mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 16:14:59 +00:00
commands: Simplify err condition
This commit is contained in:
1 parent
1e18087356
commit
2294b0226d
1 file changed
+1
-5
+1
-5
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user