Remove if-not-else patterns (#10402)
This commit is contained in:
parent
36a87d0f5c
commit
eb6f7c1240
24 changed files with 99 additions and 99 deletions
|
@ -260,11 +260,11 @@ impl DispatchTree {
|
|||
{
|
||||
let source_node_id = DispatchNodeId(source_node_id);
|
||||
while let Some(source_ancestor) = source_stack.last() {
|
||||
if source_node.parent != Some(*source_ancestor) {
|
||||
if source_node.parent == Some(*source_ancestor) {
|
||||
break;
|
||||
} else {
|
||||
source_stack.pop();
|
||||
self.pop_node();
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue