Omniscia Moby Audit
SafeERC20 Code Style Findings
SafeERC20 Code Style Findings
SER-01C: Redundant Parenthesis Statement
Type | Severity | Location |
---|---|---|
Code Style | ![]() | SafeERC20.sol:L39 |
Description:
The referenced statement is redundantly wrapped in parenthesis (()
).
Example:
contracts/tokens/libraries/SafeERC20.sol
39require((value == 0) || (token.allowance(address(this), spender) == 0),
Recommendation:
We advise them to be safely omitted, increasing the legibility of the codebase.
Alleviation (a8720219a6a97e10b8d9c6a70c6345747f0fdcb3):
The redundant parenthesis in the referenced statement have been safely omitted.