CheckError returns the error if one occurred, nil otherwise
()
| 356 | |
| 357 | // CheckError returns the error if one occurred, nil otherwise |
| 358 | func (e *Error) CheckError() error { |
| 359 | if e == nil || e.kind == ErrKindOK { |
| 360 | return nil |
| 361 | } |
| 362 | return *e |
| 363 | } |
no outgoing calls