Fix strict null issue in taskDefinitionRegistry.ts

This commit is contained in:
Alex Ross 2019-01-25 17:12:41 +01:00
parent 04dd87588e
commit 95ba24b268

View file

@ -100,7 +100,7 @@ class TaskDefinitionRegistryImpl implements ITaskDefinitionRegistry {
for (let extension of delta.removed) {
let taskTypes = extension.value;
for (let taskType of taskTypes) {
if (this.taskTypes && this.taskTypes[taskType.type]) {
if (this.taskTypes && taskType.type && this.taskTypes[taskType.type]) {
delete this.taskTypes[taskType.type];
}
}