Skip to content

Commit e218833

Browse files
committed
Remove else-after-break (NFC)
(cherry picked from commit 272ea28)
1 parent bb015b8 commit e218833

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
@@ -320,17 +320,16 @@ UserExpression::Evaluate(ExecutionContext &exe_ctx,
320320
diagnostic_manager.Clear();
321321
user_expression_sp = fixed_expression_sp;
322322
break;
323+
}
324+
// The fixed expression also didn't parse. Let's check for any new
325+
// fixits we could try.
326+
if (!fixed_expression_sp->GetFixedText().empty()) {
327+
*fixed_expression = fixed_expression_sp->GetFixedText().str();
323328
} else {
324-
// The fixed expression also didn't parse. Let's check for any new
325-
// Fix-Its we could try.
326-
if (!fixed_expression_sp->GetFixedText().empty()) {
327-
*fixed_expression = fixed_expression_sp->GetFixedText().str();
328-
} else {
329-
// Fixed expression didn't compile without a fixit, don't retry and
330-
// don't tell the user about it.
331-
fixed_expression->clear();
332-
break;
333-
}
329+
// Fixed expression didn't compile without a fixit, don't retry and
330+
// don't tell the user about it.
331+
fixed_expression->clear();
332+
break;
334333
}
335334
}
336335
}

0 commit comments

Comments
 (0)