Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ze Gan <[email protected]>
  • Loading branch information
Pterosaur committed Jan 12, 2024
1 parent f4fa7ce commit 9a2424d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions common/dbconnector.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,8 @@ struct SonicDBKey
std::string toString() const
{
std::vector<std::string> buffer;
if (!containerName.empty())
{
buffer.push_back(containerName);
}
if (!netns.empty())
{
buffer.push_back(netns);
}
buffer.push_back(containerName);
buffer.push_back(netns);
return boost::algorithm::join(buffer, ":");
}
};
Expand Down

0 comments on commit 9a2424d

Please sign in to comment.