Skip to content

Instantly share code, notes, and snippets.

@aishek
Created August 17, 2016 08:16
Show Gist options
  • Save aishek/f269286fddacebd5204b7349cc28242d to your computer and use it in GitHub Desktop.
Save aishek/f269286fddacebd5204b7349cc28242d to your computer and use it in GitHub Desktop.
special_case.js
function sendPickUpEmailAsync(order) {
if (order.fromOffice()) return;
if (order.isLong()) {
sendPickUpEmailAsync(order)
}
else {
sendPickUpAndDropOffEmailAsync(order)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment