Skip to content

Commit 99756ae

Browse files
author
Dave Bartolomeo
committed
Fix PR feedback
1 parent 9a2bea3 commit 99756ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extensions/ql-vscode/src/log-insights/log-scanner-service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ export class LogScannerService extends DisposableObject {
7373
): Promise<void> {
7474
this.diagnosticCollection.clear();
7575

76-
if (query?.t !== 'local' || query.jsonEvalLogSummaryLocation === undefined) {
76+
if ((query?.t !== 'local')
77+
|| (query.evalLogSummaryLocation === undefined)
78+
|| (query.jsonEvalLogSummaryLocation === undefined)) {
7779
return;
7880
}
7981

8082
const diagnostics = await this.scanLog(query.jsonEvalLogSummaryLocation, query.evalLogSummarySymbolsLocation);
81-
const uri = Uri.file(query.evalLogSummaryLocation!);
83+
const uri = Uri.file(query.evalLogSummaryLocation);
8284
this.diagnosticCollection.set(uri, diagnostics);
8385
}
8486

0 commit comments

Comments
 (0)