diff --git a/agent/acl_endpoint.go b/agent/acl_endpoint.go index b4be17ce7..64eaad0de 100644 --- a/agent/acl_endpoint.go +++ b/agent/acl_endpoint.go @@ -328,8 +328,8 @@ func (s *HTTPServer) ACLPolicyDelete(resp http.ResponseWriter, req *http.Request } s.parseToken(req, &args.Token) - var out string - if err := s.agent.RPC("ACL.PolicyDelete", args, &out); err != nil { + var ignored string + if err := s.agent.RPC("ACL.PolicyDelete", args, &ignored); err != nil { return nil, err } @@ -497,8 +497,8 @@ func (s *HTTPServer) ACLTokenDelete(resp http.ResponseWriter, req *http.Request, } s.parseToken(req, &args.Token) - var out string - if err := s.agent.RPC("ACL.TokenDelete", args, &out); err != nil { + var ignored string + if err := s.agent.RPC("ACL.TokenDelete", args, &ignored); err != nil { return nil, err } return true, nil diff --git a/agent/consul/acl_endpoint.go b/agent/consul/acl_endpoint.go index 9d1e9e160..138ff845e 100644 --- a/agent/consul/acl_endpoint.go +++ b/agent/consul/acl_endpoint.go @@ -811,10 +811,6 @@ func (a *ACL) PolicyDelete(args *structs.ACLPolicyDeleteRequest, reply *string) a.srv.acls.cache.RemovePolicy(policy.ID) - if resp == nil { - return nil - } - if respErr, ok := resp.(error); ok { return respErr }