From ecfda7cda560005e51fbe3c1e94b0d3506b4a28c Mon Sep 17 00:00:00 2001 From: Paul Banks Date: Wed, 6 Jun 2018 21:12:45 +0100 Subject: [PATCH] Fix unreachable code warning from go vet --- command/intention/check/check.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/command/intention/check/check.go b/command/intention/check/check.go index af56a8973e..8a14b0d188 100644 --- a/command/intention/check/check.go +++ b/command/intention/check/check.go @@ -66,12 +66,10 @@ func (c *cmd) Run(args []string) int { if allowed { c.UI.Output("Allowed") return 0 - } else { - c.UI.Output("Denied") - return 1 } - return 0 + c.UI.Output("Denied") + return 1 } func (c *cmd) Synopsis() string {