Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AriehSchneier committed Aug 26, 2024
1 parent 108c495 commit 562ae89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rel/value_set_true.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (TrueSet) Equal(i interface{}) bool {
}

func (TrueSet) Hash(seed uintptr) uintptr {
return seed ^ hash.Interface(EmptyTuple, 0)
return seed ^ hash.Any(EmptyTuple, 0)
}

func (t TrueSet) Eval(ctx context.Context, local Scope) (Value, error) {
Expand Down
4 changes: 2 additions & 2 deletions rel/value_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (v Values) equalValues(v2 Values) bool {
func (v Values) Hash(seed uintptr) uintptr {
h := seed
for _, val := range v {
h = hash.Interface(val, h)
h = hash.Any(val, h)
}
return h
}
Expand Down Expand Up @@ -211,7 +211,7 @@ func (pv projectedValues) Format(f fmt.State, verb rune) {
func (pv projectedValues) Hash(seed uintptr) uintptr {
h := seed
for _, i := range pv.p {
h = hash.Interface(pv.v[i], h)
h = hash.Any(pv.v[i], h)
}
return h
}
Expand Down

0 comments on commit 562ae89

Please sign in to comment.