From 51ead654763e72bc5ffc67af537f88726636b906 Mon Sep 17 00:00:00 2001 From: guipublic Date: Thu, 7 Mar 2024 09:04:59 +0000 Subject: [PATCH] format --- compiler/noirc_evaluator/src/ssa/opt/flatten_cfg.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/compiler/noirc_evaluator/src/ssa/opt/flatten_cfg.rs b/compiler/noirc_evaluator/src/ssa/opt/flatten_cfg.rs index fb69b7742ba..46f1e7a2765 100644 --- a/compiler/noirc_evaluator/src/ssa/opt/flatten_cfg.rs +++ b/compiler/noirc_evaluator/src/ssa/opt/flatten_cfg.rs @@ -298,11 +298,9 @@ impl<'f> Context<'f> { /// Returns the current condition fn get_last_condition(&self) -> Option { - 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, }) }