From 806f1ca17888171403c9688dcf9b999fed205344 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Tue, 24 Aug 2021 09:53:26 +0200 Subject: Use reader --- client/go/util/print.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/go/util/print.go b/client/go/util/print.go index 76912094f6e..7734a2a1a9e 100644 --- a/client/go/util/print.go +++ b/client/go/util/print.go @@ -39,7 +39,7 @@ func Detail(messages ...string) { } // Prints all the text of the given reader -func PrintReader(reader io.ReadCloser) { +func PrintReader(reader io.Reader) { // TODO: Pretty-print body scanner := bufio.NewScanner(reader) for ;scanner.Scan(); { -- cgit v1.2.3