From 8336b6526f6e6284cf5b6da9176641220da64b5d Mon Sep 17 00:00:00 2001 From: Suraj Narwade Date: Thu, 6 Jul 2017 18:41:41 +0530 Subject: [PATCH] Remove empty if branch This PR will remove empty `if` branch which is of no use now as this logic is being done in if statements which are written further. --- cmd/completion.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/completion.go b/cmd/completion.go index 2a6565b2..9da19797 100644 --- a/cmd/completion.go +++ b/cmd/completion.go @@ -45,8 +45,6 @@ func Generate(cmd *cobra.Command, args []string) error { return fmt.Errorf("Too many arguments. Expected only the shell type. ex. kompose completion [bash|zsh]") } shell := args[0] - if shell != "bash" && shell != "zsh" { - } // Generate bash through cobra if selected if shell == "bash" {