Skip to content

Commit

Permalink
SymbolFile: invert condition, remove unnecessary else (NFC)
Browse files Browse the repository at this point in the history
Remove an unnecessary `else` condition and swap the condition to be
positive rather than negative to make simpler to follow.  NFC
  • Loading branch information
compnerd committed May 5, 2023
1 parent 04e809a commit 6bca093
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1636,10 +1636,9 @@ bool SymbolFileDWARF::GetFunction(const DWARFDIE &die, SymbolContext &sc) {
lldb::ModuleSP SymbolFileDWARF::GetExternalModule(ConstString name) {
UpdateExternalModuleListIfNeeded();
const auto &pos = m_external_type_modules.find(name);
if (pos != m_external_type_modules.end())
return pos->second;
else
if (pos == m_external_type_modules.end())
return lldb::ModuleSP();
return pos->second;
}

DWARFDIE
Expand Down

0 comments on commit 6bca093

Please sign in to comment.