Skip to content

Commit

Permalink
Move data.put inside null check in writeOffset method
Browse files Browse the repository at this point in the history
  • Loading branch information
scwlkq committed Feb 20, 2024
1 parent 0e356cb commit 4831157
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public void writeOffset(RecordPartition partition, RecordOffset offset) {
ConnectorRecordPartition extendRecordPartition = null;
if (partition != null && partition.getPartition() != null) {
extendRecordPartition = new ConnectorRecordPartition(connectorName, partition.getPartition());
data.put(extendRecordPartition, offset);
}
data.put(extendRecordPartition, offset);
}

/**
Expand Down

0 comments on commit 4831157

Please sign in to comment.