func (result ErrorResults) OneError() error {
	if n := len(result.Results); n != 1 {
		return fmt.Errorf("expected 1 result, got %d", n)
	}
	if err := result.Results[0].Error; err != nil {
		return err
	}
	return nil
}
// OneError returns the error from the result
// of a bulk operation on a single value.
OneError returns the error from the result
of a bulk operation on a single value.
// OneError returns the error from the result // of a bulk operation on a single value .
func (result ErrorResults) OneError() error {
	if n := len(result.Results); n != 1 {
		return fmt.Errorf("expected 1 result, got %d", n)
	}
	if err := result.Results[0].Error; err != nil {
		return err
	}
	return nil
}
func ( result ErrorResults ) OneError ( ) error { if n := len ( result . Results ) ; n != 1 { return fmt . Errorf ( " " , n ) } if err := result . Results [ 0 ] . Error ; err != nil { return err } return nil }
OneError returns the error from the result
of a bulk operation on a single value.
OneError returns the error from the result of a bulk operation on a single value .