Skip to content

Commit

Permalink
Allow synonyms to be the same value if they are on the same line
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Apr 23, 2024
1 parent b1d57e5 commit 41adbc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inc/assembly_report/assembly_report.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ namespace ebi

void add_synonym(std::string synonym)
{
synonyms.push_back(synonym);
if (std::find(synonyms.begin(), synonyms.end(), synonym) == synonyms.end())
{
synonyms.push_back(synonym);
}
}

private:
Expand Down

0 comments on commit 41adbc7

Please sign in to comment.