MCPcopy Create free account
hub / github.com/apache/fory / CheckError

Method CheckError

go/fory/errors.go:358–363  ·  view source on GitHub ↗

CheckError returns the error if one occurred, nil otherwise

()

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls