[local-sync] don't play fast and loose with newlines, or a lack thereof

This commit is contained in:
Christine Spang 2017-01-07 14:34:03 -08:00
parent 8238fe9594
commit 9d05bb9d1c

View file

@ -27,7 +27,9 @@ function pickMatchingThread(message, threads, maxThreadLength) {
// No need to loop through the rest of the messages in the thread
if (thread.messages.length >= maxThreadLength) {
break;
} else return thread;
} else {
return thread;
}
}
// handle the case where someone is self-sending an email
@ -42,7 +44,9 @@ function pickMatchingThread(message, threads, maxThreadLength) {
&& newMsgToEmails === existingMsgFromEmails) {
if (thread.messages.length >= maxThreadLength) {
break;
} else return thread;
} else {
return thread;
}
}
}
}