Having unused local variables adversely affects code readability, as their presence is confusing. Code that is never used should be removed to keep codebases clean and maintainable.
Remove the unused local variable.