Skip to content

Commit 19df7fb

Browse files
committed
fix(cdk/tree): fix lint errors
1 parent 1766ba4 commit 19df7fb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/cdk/tree/tree-redesign.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import {ComponentFixture, TestBed, fakeAsync, flush} from '@angular/core/testing';
8+
import {ComponentFixture, TestBed} from '@angular/core/testing';
99
import {
1010
Component,
1111
ErrorHandler,

src/cdk/tree/tree.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import {ComponentFixture, TestBed, fakeAsync, flush} from '@angular/core/testing';
8+
import {ComponentFixture, TestBed} from '@angular/core/testing';
99
import {
1010
Component,
1111
ErrorHandler,

src/cdk/tree/tree.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -693,12 +693,12 @@ export class CdkTree<T, K = T> implements AfterContentChecked, CollectionViewer,
693693
// This flattens children into a single array.
694694
return observableOf(...nodes).pipe(
695695
concatMap(node => concat(observableOf([node]), this._getAllChildrenRecursively(node))),
696-
reduce((results, nodes) => {
697-
results.push(...nodes);
696+
reduce((results, children) => {
697+
results.push(...children);
698698
return results;
699699
}, [] as T[]),
700-
tap(nodes => {
701-
this._dataNodes.next(nodes);
700+
tap(allNodes => {
701+
this._dataNodes.next(allNodes);
702702
}),
703703
);
704704
} else if (this.levelAccessor && this.nodeType === 'nested') {

0 commit comments

Comments
 (0)