MCPcopy Index your code
hub / github.com/cli/cli / sanitizedReader

Function sanitizedReader

pkg/cmd/pr/diff/diff.go:335–337  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

333}
334
335func sanitizedReader(r io.Reader) io.Reader {
336 return transform.NewReader(r, sanitizer{})
337}
338
339// sanitizer replaces non-printable characters with their printable representations
340type sanitizer struct{ transform.NopResetter }

Callers 2

diffRunFunction · 0.85
Test_sanitizedReaderFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_sanitizedReaderFunction · 0.68