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) { getContactP2pDetails(pubKey) {
if (this.contactP2pDetails[pubKey]) { return this.contactP2pDetails[pubKey] || null;
return this.contactP2pDetails[pubKey];
}
return null;
} }
removeContactP2pDetails(pubKey, address, port) { removeContactP2pDetails(pubKey) {
this.contactP2pDetails[pubKey] = { delete this.contactP2pDetails[pubKey];
address,
port,
};
} }
} }

Loading…
Cancel
Save