No bug - Remove duplicated code in ContactDB.jsm. r=gwagner

--HG--
extra : rebase_source : 43fd8b87cfa5816bc3e05f21c5994bd9cdc2d29b
This commit is contained in:
Reuben Morais 2013-04-01 16:27:47 -07:00
parent c722ef5ca6
commit 0a468dc29f

View File

@ -336,12 +336,7 @@ ContactDB.prototype = {
for (let num in search) {
contact.search[field].push(num);
}
} else if (field == "email") {
let address = aContact.properties[field][i].value;
if (address && typeof address == "string") {
contact.search[field].push(address.toLowerCase());
}
} else if (field == "impp") {
} else if (field == "impp" || field == "email") {
let value = aContact.properties[field][i].value;
if (value && typeof value == "string") {
contact.search[field].push(value.toLowerCase());