Fix unneccesary logic and copy paste trash

pull/157/head
Beaudan 7 years ago
parent 2bae6b5eed
commit d002d76d9f

@ -13,17 +13,11 @@ class LokiP2pAPI {
}
getContactP2pDetails(pubKey) {
if (this.contactP2pDetails[pubKey]) {
return this.contactP2pDetails[pubKey];
}
return null;
return this.contactP2pDetails[pubKey] || null;
}
removeContactP2pDetails(pubKey, address, port) {
this.contactP2pDetails[pubKey] = {
address,
port,
};
removeContactP2pDetails(pubKey) {
delete this.contactP2pDetails[pubKey];
}
}

Loading…
Cancel
Save