Add null annotations for x: T[] = null

This code pattern indicates that the type should be nullable
This commit is contained in:
Matt Bierner
2018-10-11 14:25:11 -07:00
parent 0318e90c93
commit 29d97683a1
19 changed files with 28 additions and 28 deletions

View File

@@ -32,7 +32,7 @@ export class MainThreadTextEditorProperties {
}
private static _readSelectionsFromCodeEditor(previousProperties: MainThreadTextEditorProperties, codeEditor: ICodeEditor): Selection[] {
let result: Selection[] = null;
let result: Selection[] | null = null;
if (codeEditor) {
result = codeEditor.getSelections();
}