api/genericresource/helpers.go
Function remove
has 6 return statements (exceeds 4 allowed). Open
Open
func remove(na, r *api.GenericResource) bool {
switch tr := r.Resource.(type) {
case *api.GenericResource_DiscreteResourceSpec:
if na.GetDiscreteResourceSpec() == nil {
return false // Type change, ignore