NodeItem: simplify stream().forEach()
This commit is contained in:
parent
2a435a849e
commit
6253a3226f
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ class NodeItem<T> implements Node<T> {
|
||||||
} else if (!children.isEmpty()) {
|
} else if (!children.isEmpty()) {
|
||||||
sb.append(formatByDepth(unnamed, depth));
|
sb.append(formatByDepth(unnamed, depth));
|
||||||
}
|
}
|
||||||
getChildren().stream().forEach(c -> sb.append(c.drawTree(depth + 1)));
|
getChildren().forEach(c -> sb.append(c.drawTree(depth + 1)));
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue