Skip to content

Commit

Permalink
remove unused error helper
Browse files Browse the repository at this point in the history
  • Loading branch information
petedannemann committed Nov 15, 2023
1 parent 3d52f5a commit d0f0ec9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pkg/util/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,3 @@ func AlterPartitionReassignmentsRequestAssignmentError(results []kafka.AlterPart
}
return nil
}

func DescribeUserScramCredentialsResponseResultsError(results []kafka.DescribeUserScramCredentialsResponseResult) error {
errors := map[string]error{}
var hasErrors bool
for _, result := range results {
if result.Error != nil {
hasErrors = true
errors[result.User] = result.Error
}
}
if hasErrors {
return fmt.Errorf("%+v", errors)
}
return nil
}

0 comments on commit d0f0ec9

Please sign in to comment.