Removes unnecessary returns