GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — dns: remove duplicate code · nodejs/node@06d16cf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • dns.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/dns.js‎

Copy file name to clipboardExpand all lines: lib/dns.js
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ function onlookup(err, addresses) {
6363
if (err) {
6464
return this.callback(dnsException(err, 'getaddrinfo', this.hostname));
6565
}
66-
if (this.family) {
67-
this.callback(null, addresses[0], this.family);
68-
} else {
69-
this.callback(null, addresses[0], isIP(addresses[0]));
70-
}
66+
this.callback(null, addresses[0], this.family || isIP(addresses[0]));
7167
}
7268

7369

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.