Skip to content

Commit 0ea7c61

Browse files
Merge pull request #18810 from Microsoft/unusedErrorArgs
Remove unused arguments for diagnostics
2 parents a39110a + 76d92a5 commit 0ea7c61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14573,7 +14573,7 @@ namespace ts {
1457314573
if (node.expression) {
1457414574
const type = checkExpression(node.expression, checkMode);
1457514575
if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) {
14576-
error(node, Diagnostics.JSX_spread_child_must_be_an_array_type, node.toString(), typeToString(type));
14576+
error(node, Diagnostics.JSX_spread_child_must_be_an_array_type);
1457714577
}
1457814578
return type;
1457914579
}

src/compiler/program.ts

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ namespace ts {
15871587
fail(Diagnostics.File_0_not_found, fileName);
15881588
}
15891589
else if (refFile && host.getCanonicalFileName(fileName) === host.getCanonicalFileName(refFile.fileName)) {
1590-
fail(Diagnostics.A_file_cannot_have_a_reference_to_itself, fileName);
1590+
fail(Diagnostics.A_file_cannot_have_a_reference_to_itself);
15911591
}
15921592
}
15931593
return sourceFile;

0 commit comments

Comments
 (0)