compose.js: Remove dead code from get_invalid_recipient_emails().

The piece of code is dead since there can be no instance where
email === ''. This is ensured by util.extract_pm_recipients
by filtering for empty strings in the pm_recipients list.
This commit is contained in:
Aditya Bansal
2017-07-08 15:40:33 +05:30
committed by showell
parent 93a003749e
commit 2342a8f0e4

View File

@@ -396,10 +396,6 @@ exports.get_invalid_recipient_emails = function () {
var private_recipients = util.extract_pm_recipients(compose_state.recipient());
var invalid_recipients = [];
_.each(private_recipients, function (email) {
// This case occurs when compose_state.recipient() ends with ','
if (email === "") {
return;
}
if (people.realm_get(email) !== undefined) {
return;
}