Skip to content

Commit

Permalink
Minor update after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex committed Sep 20, 2021
1 parent 7dea258 commit 0d3403a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/runtime/expressions/for_result.go
Expand Up @@ -52,11 +52,10 @@ func (f *ForResult) Push(value core.Value) {
if f.distinct {
// We need to check whether the value already exists in the result set
hash := value.Hash()
_, exists := f.hashTable[hash]

// if already exists
// we skip it
if exists {
if f.hashTable[hash] {
return
}

Expand Down

0 comments on commit 0d3403a

Please sign in to comment.