From e5a2d13512b96af3162822079d74869299dfa762 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Wed, 20 Nov 2019 11:37:45 -0600 Subject: [PATCH] Remove extraneous else block --- nomad/acl_endpoint.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nomad/acl_endpoint.go b/nomad/acl_endpoint.go index 54f790c7648..7b160c73fc1 100644 --- a/nomad/acl_endpoint.go +++ b/nomad/acl_endpoint.go @@ -268,9 +268,8 @@ func (a *ACL) GetPolicy(args *structs.ACLPolicySpecificRequest, reply *structs.S if err != nil { return err - } else { - reply.Policy.RulesJSON = rules } + reply.Policy.RulesJSON = rules } else { // Use the last index that affected the policy table index, err := state.Index("acl_policy")