The linked variables are assigned to redundantly to the default value of each relevant data type (i.e. uint256 assigned to 0, address assigned to address(0) etc.).
Example:
for (i = 0; i < l; ++i) {
Recommendation:
We advise the assignments to be safely omitted optimizing the codebase.
AHR-02S: Redundant Variable Assignments
Description:
The linked variables are assigned to redundantly to the default value of each relevant data type (i.e.
uint256
assigned to0
,address
assigned toaddress(0)
etc.).Example:
Recommendation:
We advise the assignments to be safely omitted optimizing the codebase.