improve var name

This commit is contained in:
fryorcraken 2025-07-28 11:31:42 +10:00
parent f4a2778e02
commit d7919e8c9b
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -87,9 +87,11 @@ export class PeerDiscoveryDns
};
let isPeerChanged = false;
const isPeerExists = await this._components.peerStore.has(peerInfo.id);
const isPeerAlreadyInPeerStore = await this._components.peerStore.has(
peerInfo.id
);
if (isPeerExists) {
if (isPeerAlreadyInPeerStore) {
const peer = await this._components.peerStore.get(peerInfo.id);
const hasBootstrapTag = peer.tags.has(DEFAULT_BOOTSTRAP_TAG_NAME);