Skip to content

Commit

Permalink
refactor: remove unecessary ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ42 authored and b00ste committed Sep 20, 2023
1 parent 4f40ed0 commit c677b0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/LSP20CallVerification/LSP20CallVerification.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ 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 ? true : false;
return magicValue[3] == 0x01;
}

/**
Expand Down

0 comments on commit c677b0e

Please sign in to comment.