Skip to content

Commit 272ea28

Browse files
committed
Remove else-after-break (NFC)
1 parent 0b50d09 commit 272ea28

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lldb/source/Expression/UserExpression.cpp

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -308,17 +308,16 @@ UserExpression::Evaluate(ExecutionContext &exe_ctx,
308308
diagnostic_manager.Clear();
309309
user_expression_sp = fixed_expression_sp;
310310
break;
311+
}
312+
// The fixed expression also didn't parse. Let's check for any new
313+
// fixits we could try.
314+
if (!fixed_expression_sp->GetFixedText().empty()) {
315+
*fixed_expression = fixed_expression_sp->GetFixedText().str();
311316
} else {
312-
// The fixed expression also didn't parse. Let's check for any new
313-
// Fix-Its we could try.
314-
if (!fixed_expression_sp->GetFixedText().empty()) {
315-
*fixed_expression = fixed_expression_sp->GetFixedText().str();
316-
} else {
317-
// Fixed expression didn't compile without a fixit, don't retry and
318-
// don't tell the user about it.
319-
fixed_expression->clear();
320-
break;
321-
}
317+
// Fixed expression didn't compile without a fixit, don't retry and
318+
// don't tell the user about it.
319+
fixed_expression->clear();
320+
break;
322321
}
323322
}
324323
}

0 commit comments

Comments
 (0)