RuboCop fix - redundant return detected