Remove now superfluous conditional
authorbep <bjorn.erik.pedersen@gmail.com>
Wed, 11 Feb 2015 23:09:04 +0000 (00:09 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Wed, 11 Feb 2015 23:09:04 +0000 (00:09 +0100)
commands/hugo.go

index 747a4b40e6e18c365ab055055f1bfb7d6bb17369..d789820f6ffc3c3c30f3cbb2c9ac43f24669f2c9 100644 (file)
@@ -258,11 +258,9 @@ func copyStatic() error {
                return nil
        }
 
-       if themeDir != "" {
-               // Copy Static to Destination
-               jww.INFO.Println("syncing from", themeDir, "to", publishDir)
-               utils.CheckErr(syncer.Sync(publishDir, themeDir), fmt.Sprintf("Error copying static files of theme to %s", publishDir))
-       }
+       // Copy Static to Destination
+       jww.INFO.Println("syncing from", themeDir, "to", publishDir)
+       utils.CheckErr(syncer.Sync(publishDir, themeDir), fmt.Sprintf("Error copying static files of theme to %s", publishDir))
 
        // Copy Static to Destination
        jww.INFO.Println("syncing from", staticDir, "to", publishDir)