Skip to content

Commit

Permalink
clang-format on basectx.h
Browse files Browse the repository at this point in the history
  • Loading branch information
marzoul authored and gatecat committed Oct 1, 2024
1 parent 7f33329 commit b3b2392
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/kernel/basectx.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ struct BaseCtx

NetInfo *getNetByAlias(IdString alias) const
{
if(nets.count(alias) > 0) return nets.at(alias).get();
if(net_aliases.count(alias) == 0) return nullptr;
if (nets.count(alias) > 0)
return nets.at(alias).get();
if (net_aliases.count(alias) == 0)
return nullptr;
return nets.at(net_aliases.at(alias)).get();
}

Expand Down

0 comments on commit b3b2392

Please sign in to comment.