Skip to content

Commit 01b22ff

Browse files
Merge pull request #23331 from aboveyou00/master
Fix typeo: rename udpateReportDiagnostic to updateReportDiagnostic
2 parents 1fb2a12 + 82e8bcf commit 01b22ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/tsc.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace ts {
2222
}
2323

2424
let reportDiagnostic = createDiagnosticReporter(sys);
25-
function udpateReportDiagnostic(options: CompilerOptions) {
25+
function updateReportDiagnostic(options: CompilerOptions) {
2626
if (options.pretty) {
2727
reportDiagnostic = createDiagnosticReporter(sys, /*pretty*/ true);
2828
}
@@ -111,7 +111,7 @@ namespace ts {
111111
const commandLineOptions = commandLine.options;
112112
if (configFileName) {
113113
const configParseResult = parseConfigFileWithSystem(configFileName, commandLineOptions, sys, reportDiagnostic);
114-
udpateReportDiagnostic(configParseResult.options);
114+
updateReportDiagnostic(configParseResult.options);
115115
if (isWatchSet(configParseResult.options)) {
116116
reportWatchModeWithoutSysSupport();
117117
createWatchOfConfigFile(configParseResult, commandLineOptions);
@@ -121,7 +121,7 @@ namespace ts {
121121
}
122122
}
123123
else {
124-
udpateReportDiagnostic(commandLineOptions);
124+
updateReportDiagnostic(commandLineOptions);
125125
if (isWatchSet(commandLineOptions)) {
126126
reportWatchModeWithoutSysSupport();
127127
createWatchOfFilesAndCompilerOptions(commandLine.fileNames, commandLineOptions);

0 commit comments

Comments
 (0)