Skip to content

Commit 2ad051d

Browse files
pajangidMylesBorins
authored andcommitted
lib: change concatenated string to template
PR-URL: #16930 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
1 parent bf9eb04 commit 2ad051d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/dns.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function errnoException(err, syscall, hostname) {
4646
}
4747
varex=null;
4848
if(typeoferr==='string'){// c-ares error code.
49-
consterrHost=hostname ? ' '+hostname : '';
49+
consterrHost=hostname ? ` ${hostname}` : '';
5050
ex=newError(`${syscall}${err}${errHost}`);
5151
ex.code=err;
5252
ex.errno=err;

0 commit comments

Comments
 (0)