MCPcopy Create free account
hub / github.com/cli/cli / Empty

Method Empty

pkg/iostreams/untrusted.go:55–57  ·  view source on GitHub ↗

Empty reports whether the content is empty, for callers that branch on presence without needing the bytes.

()

Source from the content-addressed store, hash-verified

53// Empty reports whether the content is empty, for callers that branch on
54// presence without needing the bytes.
55func (u Untrusted) Empty() bool {
56 return u.raw == ""
57}
58
59// UnmarshalJSON lets a struct field typed as Untrusted be populated directly by
60// json.Unmarshal, so provenance is preserved across a JSON decode. This is what

Calls

no outgoing calls