Skip to content

Commit

Permalink
remove extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakocsis committed Sep 23, 2024
1 parent 4542c59 commit d0b81fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/SafeERC20Namer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ library SafeERC20Namer {
function callAndParseStringReturn(address token, bytes4 selector) private view returns (string memory) {
(bool success, bytes memory data) = token.staticcall(abi.encodeWithSelector(selector));
// if not implemented, or returns empty data, return empty string
if (!success || data.length == 0) {
if (!success) {
return "";
}
// bytes32 data always has length 32
Expand Down

0 comments on commit d0b81fe

Please sign in to comment.