fixes rubocop's incorrect suggestion on a render and return