The following line /src/OperatorFilterer.sol#L56 is unreachable because isOperatorAllowed/2 can only return true or throw the errors AddressFiltered/1 and CodeHashFiltered/2.
To fix it and also make it compatible with documentation:
isOperatorAllowed will return true. Otherwise, isOperatorAllowed will return false
I'm also bothered by the problem "fixed" in this PR but as I understand it the registry contract is not upradable so it's likely that it'll never get fixed on-chain...
The following line /src/OperatorFilterer.sol#L56 is unreachable because
isOperatorAllowed/2
can only returntrue
or throw the errorsAddressFiltered/1
andCodeHashFiltered/2
.To fix it and also make it compatible with documentation:
This PR refactors
isOperatorAllowed/2
removing therevert
s and returningfalse
instead.