Fix strict null issue in taskDefinitionRegistry.ts
This commit is contained in:
parent
04dd87588e
commit
95ba24b268
|
@ -100,7 +100,7 @@ class TaskDefinitionRegistryImpl implements ITaskDefinitionRegistry {
|
||||||
for (let extension of delta.removed) {
|
for (let extension of delta.removed) {
|
||||||
let taskTypes = extension.value;
|
let taskTypes = extension.value;
|
||||||
for (let taskType of taskTypes) {
|
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];
|
delete this.taskTypes[taskType.type];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue