8

Just found the equivalent of this code living in a project that has been live for years.

String emailAddress = "";
String otherEmailAddresses = PopulateEmail();

if (emailAddress.Trim != "")
{
SendEmail(emailAddress);

if (otherEmailAddresses != "")
{
SendEmail(otherAddresses);
}
}

At least I didn't write this originally.

Comments
  • 1
    *whistles in the corner*
    I do have no memory of such things occurring.....

    Must have been that intern 😇
  • 5
    git blame knows everything! 😅
Add Comment