Skip to content

Commit ecc4070

Browse files
committed
fix(cdk/tree): format
1 parent be104c2 commit ecc4070

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/cdk/tree/tree.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -484,17 +484,17 @@ export class CdkTree<T, K = T>
484484
* This will be called by the first node that's rendered in order for the tree
485485
* to determine what data transformations are required.
486486
*/
487-
_setNodeTypeIfUnset(newType: 'flat' | 'nested') {
488-
const currentType = this._nodeType.value;
489-
490-
if (currentType === null) {
491-
this._nodeType.next(newType);
492-
} else if ((typeof ngDevMode === 'undefined' || ngDevMode) && currentType !== newType) {
493-
console.warn(
494-
`Tree is using conflicting node types which can cause unexpected behavior. ` +
495-
`Please use tree nodes of the same type (e.g. only flat or only nested). ` +
496-
`Current node type: "${currentType}", new node type "${newType}".`,
497-
);
487+
_setNodeTypeIfUnset(newType: 'flat' | 'nested') {
488+
const currentType = this._nodeType.value;
489+
490+
if (currentType === null) {
491+
this._nodeType.next(newType);
492+
} else if ((typeof ngDevMode === 'undefined' || ngDevMode) && currentType !== newType) {
493+
console.warn(
494+
`Tree is using conflicting node types which can cause unexpected behavior. ` +
495+
`Please use tree nodes of the same type (e.g. only flat or only nested). ` +
496+
`Current node type: "${currentType}", new node type "${newType}".`,
497+
);
498498
}
499499
}
500500

0 commit comments

Comments
 (0)