The getHost() function has a minor issue with the naming convention of the _host variable, which can lead to confusion as the function simply returns the host state variable.
The function getHost() defines a local variable named _host, but it doesn't actually need to define this local variable. Instead, it could directly return the host state variable without introducing a new variable. The naming convention suggests that _host might be a function argument, but it's unnecessary since the function only returns the host state variable.
No impact, only confusing for the auditors.
Manual code review
It is recommended to remove the unnecessary _host variable in the function definition to avoid confusion and align with better coding practices.
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.