Skip to content

Commit

Permalink
Fix Sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed May 6, 2020
1 parent 6a61cad commit ed14bcf
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2377,10 +2377,9 @@ public void onPartitionsAssigned(Collection<TopicPartition> partitions) {
+ "consumer paused again, so the initial poll() will never return any records");
}
ListenerConsumer.this.assignedPartitions.addAll(partitions);
if (ListenerConsumer.this.commitCurrentOnAssignment) {
if (!collectAndCommitIfNecessary(partitions)) {
return;
}
if (ListenerConsumer.this.commitCurrentOnAssignment
&& !collectAndCommitIfNecessary(partitions)) {
return;
}
if (ListenerConsumer.this.genericListener instanceof ConsumerSeekAware) {
seekPartitions(partitions, false);
Expand Down

0 comments on commit ed14bcf

Please sign in to comment.