summaryrefslogtreecommitdiffstats
path: root/commands/import_jekyll.go
diff options
context:
space:
mode:
authorsrinivasreddy <thatiparthysreenivas@gmail.com>2016-03-22 03:31:25 +0530
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-03-22 19:47:47 +0100
commitc54df37f6a506e035659d15e23372ebcccbefe39 (patch)
tree2e5d1139cdbe693ca171143e207a17a61b87b660 /commands/import_jekyll.go
parentb1b7ac7e750a5d6b73daa5971eb1df4a79b698a5 (diff)
source: Remove unnecessary else condition
Diffstat (limited to 'commands/import_jekyll.go')
-rw-r--r--commands/import_jekyll.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/commands/import_jekyll.go b/commands/import_jekyll.go
index 40d243375..30a86528f 100644
--- a/commands/import_jekyll.go
+++ b/commands/import_jekyll.go
@@ -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
}