Enable 'makezero' and 'prealloc' linters, and require 'any' instead of 'interface{}'

Enforce importas:

- go.pinniped.dev/generated/latest/apis/supervisor/config/v1alpha1
- go.pinniped.dev/generated/latest/apis/supervisor/idp/v1alpha1
This commit is contained in:
Joshua Casey
2024-05-21 09:31:15 -05:00
parent bbe10004b4
commit f5116cddb4
98 changed files with 1889 additions and 1869 deletions
+2 -2
View File
@@ -72,8 +72,8 @@ func unsyncedInformers(status map[reflect.Type]bool) []string {
return names
}
func anyToFullname(any interface{}) string {
typ := reflect.TypeOf(any)
func anyToFullname(a any) string {
typ := reflect.TypeOf(a)
return typeToFullname(typ)
}