From 8adf174193ce90f6da52523b85eed54f8a262639 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 2 Jun 2021 09:22:10 -0700 Subject: [PATCH 1/2] fix go vet --- tarwriter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarwriter_test.go b/tarwriter_test.go index 6b48291..02686b5 100644 --- a/tarwriter_test.go +++ b/tarwriter_test.go @@ -26,7 +26,7 @@ func TestTarWriter(t *testing.T) { go func() { defer tw.Close() if err := tw.WriteFile(tf, ""); err != nil { - t.Fatal(err) + t.Error(err) } }() From 7ebda61409d14004a11905724112f15f02c26dd8 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 2 Jun 2021 09:22:34 -0700 Subject: [PATCH 2/2] fix staticcheck --- webfile_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webfile_test.go b/webfile_test.go index 450dffc..57a67fe 100644 --- a/webfile_test.go +++ b/webfile_test.go @@ -12,7 +12,7 @@ import ( func TestWebFile(t *testing.T) { const content = "Hello world!" s := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - fmt.Fprintf(w, content) + fmt.Fprint(w, content) })) defer s.Close()