Apply suggestions from code review

This commit is contained in:
Chris Hennes
2024-03-04 19:01:18 -06:00
committed by GitHub
parent 834bbff6b0
commit 84e0cc7293
2 changed files with 6 additions and 4 deletions

View File

@@ -5014,11 +5014,13 @@ bool TopoShape::getRelatedElementsCached(const Data::MappedName &name,
HistoryTraceType sameType,
QVector<Data::MappedElement> &names) const
{
if(!_cache)
if(!_cache) {
return false;
}
auto it = _cache->relations.find(ShapeRelationKey(name,sameType));
if(it == _cache->relations.end())
if(it == _cache->relations.end()) {
return false;
}
names = it->second;
return true;
}