forked from LaconicNetwork/kompose
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.
This commit is contained in:
@@ -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]")
|
return fmt.Errorf("Too many arguments. Expected only the shell type. ex. kompose completion [bash|zsh]")
|
||||||
}
|
}
|
||||||
shell := args[0]
|
shell := args[0]
|
||||||
if shell != "bash" && shell != "zsh" {
|
|
||||||
}
|
|
||||||
|
|
||||||
// Generate bash through cobra if selected
|
// Generate bash through cobra if selected
|
||||||
if shell == "bash" {
|
if shell == "bash" {
|
||||||
|
|||||||
Reference in New Issue
Block a user