Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
guipublic committed Mar 7, 2024
1 parent f8ddac7 commit 51ead65
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions compiler/noirc_evaluator/src/ssa/opt/flatten_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,9 @@ impl<'f> Context<'f> {

/// Returns the current condition
fn get_last_condition(&self) -> Option<ValueId> {
self.condition_stack.last().map(|context| {
match &context.else_branch {
Some(else_branch) => else_branch.condition,
None => context.then_branch.condition,
}
self.condition_stack.last().map(|context| match &context.else_branch {
Some(else_branch) => else_branch.condition,
None => context.then_branch.condition,
})
}

Expand Down

0 comments on commit 51ead65

Please sign in to comment.