MCPcopy
hub / github.com/apache/answer / checkObjectID

Function checkObjectID

pkg/obj/obj.go:50–55  ·  view source on GitHub ↗
(objectID string)

Source from the content-addressed store, hash-verified

48}
49
50func checkObjectID(objectID string) (err error) {
51 if len(objectID) < 5 {
52 return errors.BadRequest(reason.ObjectNotFound)
53 }
54 return nil
55}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected