Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for collapseAggregateErrors (0.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/meta/firsthit_restmapper.go

    	}
    
    	return nil, collapseAggregateErrors(errors)
    }
    
    func (m FirstHitRESTMapper) Reset() {
    	m.MultiRESTMapper.Reset()
    }
    
    // collapseAggregateErrors returns the minimal errors.  it handles empty as nil, handles one item in a list
    // by returning the item, and collapses all NoMatchErrors to a single one (since they should all be the same)
    func collapseAggregateErrors(errors []error) error {
    	if len(errors) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 23:44:02 UTC 2021
    - 2.8K bytes
    - Viewed (0)
Back to top