Skip to content

Commit

Permalink
lib: change concatenated string to template
Browse files Browse the repository at this point in the history
PR-URL: #16930
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • Loading branch information
pajangid authored and evanlucas committed Nov 13, 2017
1 parent 651fee4 commit 44c3cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function errnoException(err, syscall, hostname) {
}
var ex = null;
if (typeof err === 'string') { // c-ares error code.
const errHost = hostname ? ' ' + hostname : '';
const errHost = hostname ? ` ${hostname}` : '';
ex = new Error(`${syscall} ${err}${errHost}`);
ex.code = err;
ex.errno = err;
Expand Down

0 comments on commit 44c3cc2

Please sign in to comment.