source: Remove unnecessary else condition
authorsrinivasreddy <thatiparthysreenivas@gmail.com>
Mon, 21 Mar 2016 22:01:25 +0000 (03:31 +0530)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 22 Mar 2016 18:47:47 +0000 (19:47 +0100)
commands/import_jekyll.go

index 40d243375034c26a931408db62d1b5372a3bd7c3..30a86528fd4c0f3ee3cf3e30717056304924af51 100644 (file)
@@ -128,12 +128,11 @@ func importFromJekyll(cmd *cobra.Command, args []string) error {
 
        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
 }