MCPcopy Index your code
hub / github.com/bitfield/script / Close

Method Close

script.go:1060–1065  ·  view source on GitHub ↗

Close closes ra's reader, returning any resulting error.

()

Source from the content-addressed store, hash-verified

1058
1059// Close closes ra's reader, returning any resulting error.
1060func (ra ReadAutoCloser) Close() error {
1061 if ra.r == nil {
1062 return nil
1063 }
1064 return ra.r.Close()
1065}
1066
1067// Read reads up to len(b) bytes from ra's reader into b. It returns the number
1068// of bytes read and any error encountered. At end of file, Read returns 0,

Callers 1

ReadMethod · 0.95

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected