migrations/adopt_pdb.go
Method AdoptPDB.Apply
has 5 return statements (exceeds 4 allowed). Open
Open
func (m AdoptPDB) Apply(ctx context.Context, obj runtime.Object) error {
stSet, ok := obj.(*appsv1.StatefulSet)
if !ok {
return fmt.Errorf("expected *v1.StatefulSet, got: %T", obj)
}