NodeItem: simplify stream().forEach()

This commit is contained in:
Paul Campbell 2016-08-22 08:59:52 +01:00
parent 2a435a849e
commit 6253a3226f

View file

@ -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();
} }