Skip to content

Commit

Permalink
Don't use a Go 1.20 method
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jun 13, 2023
1 parent 8103878 commit f3306fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/preferences.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (p *InMemoryPreferences) set(key string, value interface{}) {
if p.values[key] != nil && s.Len() == old.Len() {
changed := false
for i := 0; i < s.Len(); i++ {
if !s.Index(i).Equal(old.Index(i)) {
if s.Index(i).Interface() != old.Index(i).Interface() {
changed = true
}
}
Expand Down

0 comments on commit f3306fd

Please sign in to comment.