Skip to content

Commit

Permalink
refactor: remove unecessary ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
b00ste committed Oct 10, 2023
1 parent 497ae5d commit f09e813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/LSP20CallVerification/LSP20CallVerification.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ abstract contract LSP20CallVerification {

bytes4 magicValue = abi.decode(returnedData, (bytes4));

if (bytes3(magicValue) != bytes3(ILSP20.lsp20VerifyCall.selector))
if (bytes3(magicValue) != bytes3(ILSP20.lsp20VerifyCall.selector)) {
revert LSP20InvalidMagicValue(false, returnedData);
}

return magicValue[3] == 0x01;
}
Expand Down

0 comments on commit f09e813

Please sign in to comment.