all repos — searchix @ e1c335c706bbf5dadb1f68dfc2026ab91b7a2508

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: remove unused http ReadCloser adapter

Alan Pearce
commit

e1c335c706bbf5dadb1f68dfc2026ab91b7a2508

parent

d804ce1e5023d7c0ed5505736a3b553f6c81d7da

1 file changed, 0 insertions(+), 24 deletions(-)

changed files
D internal/fetcher/http/buf.go
@@ -1,24 +0,0 @@
-package http - -import ( - "bufio" - "io" - - "github.com/Southclaws/fault" -) - -type Reader struct { - closer io.ReadCloser - *bufio.Reader -} - -func NewReadCloser(body io.ReadCloser) *Reader { - return &Reader{ - closer: body, - Reader: bufio.NewReader(body), - } -} - -func (r *Reader) Close() error { - return fault.Wrap(r.closer.Close()) -}