From 1259f9f423f093d294acdcd41f68cf8bbd61d7bd Mon Sep 17 00:00:00 2001 From: Leonardo Biffi Date: Thu, 17 Mar 2022 16:11:19 -0300 Subject: [PATCH] fix remove acl --- kafka/kafka_acls.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kafka/kafka_acls.go b/kafka/kafka_acls.go index ec689de8..a81f166d 100644 --- a/kafka/kafka_acls.go +++ b/kafka/kafka_acls.go @@ -146,18 +146,12 @@ func (c *Client) DeleteACL(s StringlyTypedACL) error { return err } - matchingAclCount := 0 - for _, r := range res.FilterResponses { - matchingAclCount += len(r.MatchingAcls) if r.Err != sarama.ErrNoError { return r.Err } } - if matchingAclCount == 0 { - return fmt.Errorf("There were no acls matching this filter") - } return nil }