The code is making sure that the id variable is smaller than uint40 however the variable is not allowed to excess this amount because the parameters registers it as uint40.
The present code is redundant as the parameters allow the tokenId to be of type uint40 so making sure that the tokenId variable is lower than uint40 redundant.
Increased complexity of the code
none
Delete redundant code.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.