Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: nodejs#24788 Reviewed-By: Anto Aravinth <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Masashi Hirano <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
- Loading branch information