Commit 54f8453e authored by cjihrig's avatar cjihrig Committed by Rich Trott
Browse files

dns: simplify dns.promises warning logic

dns.promises is lazy loaded. Instead of using a seaparate
Boolean flag to track whether or not it has been loaded, just
inspect the state of the lazy loaded module itself.

PR-URL: https://github.com/nodejs/node/pull/24788


Reviewed-By: default avatarAnto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: default avatarWeijia Wang <starkwang@126.com>
Reviewed-By: default avatarMasashi Hirano <shisama07@gmail.com>
Reviewed-By: default avatarJeremiah Senkpiel <fishrock123@rocketmail.com>
parent 7ac939e1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment