Skip to content

Commit 1420fbc

Browse files
authored
Bind logger function before using (#17983)
* Bind logger function before using * Use lambda isntead of bind
1 parent 34e4209 commit 1420fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/typingsInstaller/typingsInstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ namespace ts.server.typingsInstaller {
149149
}
150150
const discoverTypingsResult = JsTyping.discoverTypings(
151151
this.installTypingHost,
152-
this.log.isEnabled() ? this.log.writeLine : undefined,
152+
this.log.isEnabled() ? (s => this.log.writeLine(s)) : undefined,
153153
req.fileNames,
154154
req.projectRootPath,
155155
this.safeList,

0 commit comments

Comments
 (0)