Annotate more usage before assign strict null errors

This commit is contained in:
Matt Bierner
2019-02-19 14:11:29 -08:00
parent e9a1cea1fd
commit 7e759cf3c8
8 changed files with 16 additions and 16 deletions

View File

@@ -120,7 +120,7 @@ export class DiagnosticCollection implements vscode.DiagnosticCollection {
// compute change and send to main side
const entries: [URI, IMarkerData[]][] = [];
for (let uri of toSync) {
let marker: IMarkerData[];
let marker: IMarkerData[] | undefined;
let diagnostics = this._data.get(uri.toString());
if (diagnostics) {