Skip to content

Commit 44c3cc2

Browse files
pajangidevanlucas
authored andcommitted
lib: change concatenated string to template
PR-URL: #16930 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
1 parent 651fee4 commit 44c3cc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dns.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function errnoException(err, syscall, hostname) {
5151
}
5252
var ex = null;
5353
if (typeof err === 'string') { // c-ares error code.
54-
const errHost = hostname ? ' ' + hostname : '';
54+
const errHost = hostname ? ` ${hostname}` : '';
5555
ex = new Error(`${syscall} ${err}${errHost}`);
5656
ex.code = err;
5757
ex.errno = err;

0 commit comments

Comments
 (0)