mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Simplify some code, NFC.
This commit is contained in:
@@ -1542,10 +1542,7 @@ Optional<CommentInfo> ModuleFile::getCommentForDecl(const Decl *D) const {
|
||||
Optional<StringRef> ModuleFile::getGroupNameById(unsigned Id) const {
|
||||
if(!GroupNamesMap || GroupNamesMap->count(Id) == 0)
|
||||
return None;
|
||||
auto Group = (*GroupNamesMap)[Id];
|
||||
if (Group.empty())
|
||||
return None;
|
||||
return Group;
|
||||
return (*GroupNamesMap)[Id];
|
||||
}
|
||||
|
||||
Optional<StringRef> ModuleFile::getGroupNameForDecl(const Decl *D) const {
|
||||
|
||||
Reference in New Issue
Block a user