diff --git a/cwriter/cuuAndEd_construction_bench_test.go b/cwriter/cuuAndEd_construction_bench_test.go index 7b6a42c..25d585b 100644 --- a/cwriter/cuuAndEd_construction_bench_test.go +++ b/cwriter/cuuAndEd_construction_bench_test.go @@ -18,7 +18,7 @@ func BenchmarkWithJoin(b *testing.B) { bCuuAndEd := [][]byte{[]byte("\x1b["), []byte("A\x1b[J")} for i := 0; i < b.N; i++ { - ioutil.Discard.Write(bytes.Join(bCuuAndEd, []byte(strconv.Itoa(4)))) + _, _ = ioutil.Discard.Write(bytes.Join(bCuuAndEd, []byte(strconv.Itoa(4)))) } } @@ -26,7 +26,7 @@ escOpen := []byte("\x1b[") cuuAndEd := []byte("A\x1b[J") for i := 0; i < b.N; i++ { - ioutil.Discard.Write(append(strconv.AppendInt(escOpen, 4, 10), cuuAndEd...)) + _, _ = ioutil.Discard.Write(append(strconv.AppendInt(escOpen, 4, 10), cuuAndEd...)) } } @@ -34,6 +34,6 @@ w := New(ioutil.Discard) w.lines = 4 for i := 0; i < b.N; i++ { - w.ansiCuuAndEd() + _ = w.ansiCuuAndEd() } } diff --git a/example_test.go b/example_test.go index 072c8b6..72596c4 100644 --- a/example_test.go +++ b/example_test.go @@ -78,7 +78,7 @@ defer proxyReader.Close() // and copy from reader, ignoring errors - io.Copy(ioutil.Discard, proxyReader) + _, _ = io.Copy(ioutil.Discard, proxyReader) p.Wait() }