clean setInput

This commit is contained in:
Joao Moreno
2018-12-17 16:26:40 +01:00
parent 1ece160c3f
commit f52112e318
2 changed files with 2 additions and 12 deletions

View File

@@ -283,13 +283,8 @@ export class AsyncDataTree<TInput, T, TFilterData = void> implements IDisposable
return this.root.element as TInput;
}
setInput(input: TInput | undefined): Promise<void> {
setInput(input: TInput): Promise<void> {
this.root.element = input!;
if (typeof input === 'undefined') {
return Promise.resolve();
}
return this.refresh(input);
}