Skip to content

Commit 93d099b

Browse files
committed
remove unneeded zero check
1 parent 595b1cc commit 93d099b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/protocol/taiko_alethia/MessageRelayer.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ contract MessageRelayer is ReentrancyGuardTransient, IMessageRelayer {
7373
bytes memory proof,
7474
address tipRecipient
7575
) external {
76-
if (tipRecipient != address(0)) {
77-
TIP_RECIPIENT_SLOT.asAddress().tstore(tipRecipient);
78-
}
76+
TIP_RECIPIENT_SLOT.asAddress().tstore(tipRecipient);
7977

8078
ethBridge.claimDeposit(ethDeposit, height, proof);
8179
}

0 commit comments

Comments
 (0)