Skip to content

Commit

Permalink
don't crash on null options in printDiagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Jan 25, 2022
1 parent 1166704 commit 3147202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProgramBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class ProgramBuilder {
}

private printDiagnostics(diagnostics?: BsDiagnostic[]) {
if (this.options.showDiagnosticsInConsole === false) {
if (this.options?.showDiagnosticsInConsole === false) {
return;
}
if (!diagnostics) {
Expand Down

0 comments on commit 3147202

Please sign in to comment.