Skip to content

Commit 2b50411

Browse files
author
Martin Schneppenheim
committed
use right nil type to fix partition reassignments
1 parent 236d68c commit 2b50411

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/topic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ func (s *Service) executeAlterPartitionAssignments(ctx context.Context, req *kms
107107
}
108108
for _, topic := range res.Topics {
109109
for _, partition := range topic.Partitions {
110-
err = kerr.TypedErrorForCode(partition.ErrorCode)
111-
if err != nil {
110+
typedErr = kerr.TypedErrorForCode(partition.ErrorCode)
111+
if typedErr != nil {
112112
return fmt.Errorf("inner Kafka partition error on partition '%v': %w", partition.Partition, err)
113113
}
114114
}

0 commit comments

Comments
 (0)