I have multiple email addresses associated with GitHub and my current "primary email" is number 4 in a list of 6. The current implementation of get_primary_email/1 assumed the primary email would be at the head of the list. This PR refactors get_primary_email/1 to now recurse through the whole list.
I have multiple email addresses associated with GitHub and my current "primary email" is number 4 in a list of 6. The current implementation of
get_primary_email/1
assumed the primary email would be at the head of the list. This PR refactorsget_primary_email/1
to now recurse through the whole list.