change unused variable to return

variable has same name as method, so don’t need it