Skip to content

Commit 2ad051d

Browse files
pajangidMylesBorins
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 bf9eb04 commit 2ad051d

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
@@ -46,7 +46,7 @@ function errnoException(err, syscall, hostname) {
4646
}
4747
var ex = null;
4848
if (typeof err === 'string') { // c-ares error code.
49-
const errHost = hostname ? ' ' + hostname : '';
49+
const errHost = hostname ? ` ${hostname}` : '';
5050
ex = new Error(`${syscall} ${err}${errHost}`);
5151
ex.code = err;
5252
ex.errno = err;

0 commit comments

Comments
 (0)