shithub: hugo

Download patch

ref: c54df37f6a506e035659d15e23372ebcccbefe39
parent: b1b7ac7e750a5d6b73daa5971eb1df4a79b698a5
author: srinivasreddy <[email protected]>
date: Mon Mar 21 23:31:25 EDT 2016

source: Remove unnecessary else condition

--- a/commands/import_jekyll.go
+++ b/commands/import_jekyll.go
@@ -128,12 +128,11 @@
 
 	if err != nil {
 		return err
-	} else {
-		fmt.Println("Congratulations!", fileCount, "post(s) imported!")
-		fmt.Println("Now, start Hugo by yourself:\n" +
-			"$ git clone https://github.com/spf13/herring-cove.git " + args[1] + "/themes/herring-cove")
-		fmt.Println("$ cd " + args[1] + "\n$ hugo server --theme=herring-cove")
 	}
+	fmt.Println("Congratulations!", fileCount, "post(s) imported!")
+	fmt.Println("Now, start Hugo by yourself:\n" +
+		"$ git clone https://github.com/spf13/herring-cove.git " + args[1] + "/themes/herring-cove")
+	fmt.Println("$ cd " + args[1] + "\n$ hugo server --theme=herring-cove")
 
 	return nil
 }