Fix PR feedback

This commit is contained in:
Dave Bartolomeo
2022-08-12 16:25:52 -04:00
parent 9a2bea39e6
commit 99756ae63b

View File

@@ -73,12 +73,14 @@ export class LogScannerService extends DisposableObject {
): Promise<void> {
this.diagnosticCollection.clear();
if (query?.t !== 'local' || query.jsonEvalLogSummaryLocation === undefined) {
if ((query?.t !== 'local')
|| (query.evalLogSummaryLocation === undefined)
|| (query.jsonEvalLogSummaryLocation === undefined)) {
return;
}
const diagnostics = await this.scanLog(query.jsonEvalLogSummaryLocation, query.evalLogSummarySymbolsLocation);
const uri = Uri.file(query.evalLogSummaryLocation!);
const uri = Uri.file(query.evalLogSummaryLocation);
this.diagnosticCollection.set(uri, diagnostics);
}