Skip to content

Commit d79627b

Browse files
committed
consistency
1 parent 51a3c50 commit d79627b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contracts/utils/Address.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ library Address {
3838
if (LowLevelCall.callNoReturn(recipient, amount, "")) {
3939
// call successful, nothing to do
4040
return;
41-
} else if (LowLevelCall.returnDataSize() == 0) {
42-
revert Errors.FailedCall();
43-
} else {
41+
} else if (LowLevelCall.returnDataSize() > 0) {
4442
LowLevelCall.bubbleRevert();
43+
} else {
44+
revert Errors.FailedCall();
4545
}
4646
}
4747

0 commit comments

Comments
 (0)