Merge pull request #4911 from whitewindmills/rv-compare

chore: Use != for RV comparison
This commit is contained in:
karmada-bot 2024-05-07 20:13:31 +08:00 committed by GitHub
commit abb77d954c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ var bindingPredicateFn = builder.WithPredicates(predicate.Funcs{
return false
}
return !reflect.DeepEqual(oldResourceVersion, newResourceVersion)
return oldResourceVersion != newResourceVersion
},
DeleteFunc: func(e event.DeleteEvent) bool { return false },
})