Skip to content

Commit

Permalink
Check if local name is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Brawner <[email protected]>
  • Loading branch information
brawner committed Jan 9, 2021
1 parent f1b5fc7 commit d07a06b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ std::string JoinName(
{
if (_scopeName.empty())
return _localName;
if (_localName.empty()) {
return _scopeName;
}
return _scopeName + kSdfScopeDelimiter + _localName;
}
}
Expand Down

0 comments on commit d07a06b

Please sign in to comment.