Skip to content

Commit

Permalink
refactor: Remove redundant checks
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Mar 27, 2024
1 parent 17a963d commit 47aa213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/detectors/typeChecker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class TsProjectDetector extends ProjectBasedDetector {
.filter(($: string | undefined) => $)
.map((res) => {
if (res && !res.endsWith(".js")) {
const chunks = res?.split(".");
const chunks = res.split(".");
chunks.splice(-1, 1, "js");
res = chunks.join(".");
}
Expand Down

0 comments on commit 47aa213

Please sign in to comment.