mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-08-01 21:06:14 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user