Removing redundant return statement