Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
xunilrj committed Aug 15, 2023
1 parent 21a576d commit 247aa43
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sway-core/src/control_flow_analysis/analyze_return_paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ impl<'cfg> ControlFlowGraph<'cfg> {
let mut leaves = vec![];
for ast_entrypoint in module_nodes {
match connect_node(engines, ast_entrypoint, &mut graph, &leaves) {
Ok(l_leaves) => {
if let NodeConnection::NextStep(nodes) = l_leaves {
leaves = nodes;
}
Ok(NodeConnection::NextStep(nodes)) => {
leaves = nodes;
}
Ok(_) => {}
Err(mut e) => {
errors.append(&mut e);
}
Expand Down

0 comments on commit 247aa43

Please sign in to comment.