Removing a redundant return statement