mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
No bug - Remove duplicated code in ContactDB.jsm. r=gwagner
--HG-- extra : rebase_source : 43fd8b87cfa5816bc3e05f21c5994bd9cdc2d29b
This commit is contained in:
parent
c722ef5ca6
commit
0a468dc29f
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user