The getHost
method declares a named return variable _host
but does not utilize it. Instead, it explicitly uses the return
statement with the host
state variable. This results in an inconsistency in the function's implementation and deviates from Solidity best practices for named return variables.
The issue does not affect the functionality but leads to minor code quality concerns.
It can create confusion for developers reading or maintaining the code.
manual
Modify the getHost
method to properly utilize the named return variable _host
:
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.