Fix unreachable code warning from go vet

This commit is contained in:
Paul Banks 2018-06-06 21:12:45 +01:00 committed by Jack Pearkes
parent d1c67d90bc
commit ecfda7cda5
1 changed files with 2 additions and 4 deletions

View File

@ -66,12 +66,10 @@ func (c *cmd) Run(args []string) int {
if allowed { if allowed {
c.UI.Output("Allowed") c.UI.Output("Allowed")
return 0 return 0
} else {
c.UI.Output("Denied")
return 1
} }
return 0 c.UI.Output("Denied")
return 1
} }
func (c *cmd) Synopsis() string { func (c *cmd) Synopsis() string {