Skip to content

Commit

Permalink
revert change to diagnostics printer
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizzerinus committed Jan 9, 2025
1 parent 4be3cb5 commit 5b2c8f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/pyright-internal/src/baseline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,7 @@ export class BaselineHandler {
files: {},
};
for (const fileWithDiagnostics of filesWithDiagnostics) {
const filePath = this.configOptions.projectRoot.getRelativePath(fileWithDiagnostics.fileUri)?.toString();
if (filePath === undefined) continue;
const filePath = this.configOptions.projectRoot.getRelativePath(fileWithDiagnostics.fileUri)!.toString();
const errorDiagnostics = fileWithDiagnostics.diagnostics.filter(
(diagnostic) => diagnostic.category !== DiagnosticCategory.Hint || diagnostic.baselined
);
Expand Down

0 comments on commit 5b2c8f3

Please sign in to comment.