Skip to content

Commit 7c20481

Browse files
authored
Remove redundant .toString
`options.configFilePath` is always a string, there's no reason we need `toString()` too.
1 parent cc36048 commit 7c20481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/servicesHost.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ export function makeSolutionBuilderHost(
798798
if (options) {
799799
// The `configFilePath` is the same value that is used as the `project` parameter of
800800
// `getCustomtransformers` below.
801-
const project = options.configFilePath?.toString();
801+
const project = options.configFilePath;
802802
if (project) {
803803
// Custom transformers need a reference to the `typescript.Program`, that reference is
804804
// unavailable during the the `getCustomTransformers` callback below.

0 commit comments

Comments
 (0)