The comment about .get() being safe is not relevant, remove it.
Change-Id: I92ed59e6ef72968ed7cfbdc1da0e22817431483c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
static Optional<TreeNode> apply(final Apply delegate, final ApplyWrite writeDelegate,
final NormalizedNode<?, ?> emptyNode, final ModifiedNode modification, final Optional<TreeNode> storeMeta,
final Version version) {
- // The only way a tree node can disappear is through delete (which we handle here explicitly) or through
- // actions of disappearResult(). It is therefore safe to perform Optional.get() on the results of
- // delegate.apply()
final Optional<TreeNode> ret;
if (modification.getOperation() == LogicalOperation.DELETE) {
if (modification.getChildren().isEmpty()) {