Skip to content

Commit

Permalink
Simplify redundant mask
Browse files Browse the repository at this point in the history
  • Loading branch information
sappenin committed Aug 23, 2024
1 parent ce8e303 commit f52e122
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ public AmountType fromJson(JsonNode value) throws JsonProcessingException {
)
);
final byte[] rawBytes = number.toByteArray();
if (isValueNegative) {
rawBytes[0] |= 0x00;
} else {
if (!isValueNegative) {
rawBytes[0] |= 0x40;
}
return new AmountType(UnsignedByteArray.of(rawBytes));
Expand Down

0 comments on commit f52e122

Please sign in to comment.