Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc authored Aug 24, 2024
1 parent 4b12572 commit 4811cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/Core/MemoryStorage/DevTools/SimpleVectorDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ private static bool TagsMatchFilters(TagCollection tags, ICollection<MemoryFilte
{
if (baseFilter is EqualFilter eq)
{
//Verify that contains key and value required
// Verify that it contains key and value required
match = match && tags.ContainsKey(eq.Key) && tags[eq.Key].Contains(eq.Value);
}
else if (baseFilter is NotEqualFilter neq)
{
//Verity that tag is not contained at all, or if is present it don't contain the value
// Verity that tag is not contained at all, or if is present it doesn't contain the value
match = match && (!tags.ContainsKey(neq.Key) || !tags[neq.Key].Contains(neq.Value));
}
else
Expand Down

0 comments on commit 4811cc2

Please sign in to comment.