Skip to content

Commit

Permalink
fix: Equals should be same type.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghosind committed Aug 16, 2022
1 parent b06f70a commit bcf1e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion concurrent_hashset.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (set *ConcurrentHashSet[T]) ContainsAll(c ...T) bool {

// Equals compares set with the object pass from parameter.
func (set *ConcurrentHashSet[T]) Equals(o any) bool {
if !utils.IsSameRawType(set, o) {
if !utils.IsSameType(set, o) {
return false
}

Expand Down
2 changes: 1 addition & 1 deletion hashset.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (set *HashSet[T]) ContainsAll(c ...T) bool {

// Equals compares set with the object pass from parameter.
func (set *HashSet[T]) Equals(o any) bool {
if !utils.IsSameRawType(set, o) {
if !utils.IsSameType(set, o) {
return false
}

Expand Down

0 comments on commit bcf1e8b

Please sign in to comment.