Empty else if
block in Basket.publishNewIndex()
#38
Labels
bug
Warden finding
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pants
Vulnerability details
The function
Basket.publishNewIndex()
contains the following code:Impact
Empty code blocks increase gas costs (add overheads) and make the code less readable.
Tool Used
Manual code review.
Recommended Mitigation Steps
Get rid of the empty block by changing this code to:
The text was updated successfully, but these errors were encountered: