Commit 9f676dd
authored
MINOR: Clean up unreachable code in FetcherTest (apache#19376)
This is from [apache#16532's comment](https://github.com/apache/kafka/pull/16532/files#r2028985028):
The forEach loop in the assertion will never execute because
`nonResponseData` is empty.
This happens because the above assertion `emptyMap()` has a size of 0,
so there are no elements to iterate over.
Reviewers: PoAn Yang <[email protected]>, Ken Huang
<[email protected]>, TaiJuWu <[email protected]>, TengYao Chi
<[email protected]>, Chia-Ping Tsai <[email protected]>1 parent ab4a0f0 commit 9f676dd
File tree
1 file changed
+2
-3
lines changed- clients/src/test/java/org/apache/kafka/clients/consumer/internals
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3662 | 3662 | | |
3663 | 3663 | | |
3664 | 3664 | | |
3665 | | - | |
3666 | | - | |
3667 | | - | |
| 3665 | + | |
| 3666 | + | |
3668 | 3667 | | |
3669 | 3668 | | |
3670 | 3669 | | |
| |||
0 commit comments