Skip to content

Commit 6bca093

Browse files
committed
SymbolFile: invert condition, remove unnecessary else (NFC)
Remove an unnecessary `else` condition and swap the condition to be positive rather than negative to make simpler to follow. NFC
1 parent 04e809a commit 6bca093

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,10 +1636,9 @@ bool SymbolFileDWARF::GetFunction(const DWARFDIE &die, SymbolContext &sc) {
16361636
lldb::ModuleSP SymbolFileDWARF::GetExternalModule(ConstString name) {
16371637
UpdateExternalModuleListIfNeeded();
16381638
const auto &pos = m_external_type_modules.find(name);
1639-
if (pos != m_external_type_modules.end())
1640-
return pos->second;
1641-
else
1639+
if (pos == m_external_type_modules.end())
16421640
return lldb::ModuleSP();
1641+
return pos->second;
16431642
}
16441643

16451644
DWARFDIE

0 commit comments

Comments
 (0)