Skip to content

Commit

Permalink
chore(stdlib): Removed redundant for-loop in Set.intersect (#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
lumi-a authored Jun 6, 2024
1 parent fc19761 commit f62afff
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions stdlib/set.gr
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,6 @@ provide let intersect = (set1, set2) => {
add(key, set)
}
}, set1)
forEach(key => {
if (contains(key, set1)) {
add(key, set)
}
}, set2)
set
}

Expand Down

0 comments on commit f62afff

Please sign in to comment.