Skip to content

Commit

Permalink
Remove redundant .toString
Browse files Browse the repository at this point in the history
`options.configFilePath` is always a string, there's no reason we need `toString()` too.
  • Loading branch information
feosuna1 committed Nov 25, 2022
1 parent cc36048 commit 7c20481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/servicesHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ export function makeSolutionBuilderHost(
if (options) {
// The `configFilePath` is the same value that is used as the `project` parameter of
// `getCustomtransformers` below.
const project = options.configFilePath?.toString();
const project = options.configFilePath;
if (project) {
// Custom transformers need a reference to the `typescript.Program`, that reference is
// unavailable during the the `getCustomTransformers` callback below.
Expand Down

0 comments on commit 7c20481

Please sign in to comment.