Skip to content

Commit

Permalink
Remove repeated code
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Jul 12, 2022
1 parent 6b75736 commit 89cc8ce
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,9 @@ public byte[] getStickyKey() {
return metadata.getOrderingKey();
} else if (metadata.hasPartitionKey()) {
return metadata.getPartitionKey().getBytes(StandardCharsets.UTF_8);
} else {
return "NONE_KEY".getBytes(StandardCharsets.UTF_8);
}
} else {
return "NONE_KEY".getBytes(StandardCharsets.UTF_8);
}
return "NONE_KEY".getBytes(StandardCharsets.UTF_8);
}

@Override
Expand Down

0 comments on commit 89cc8ce

Please sign in to comment.