From 73bb220fb269ec7737423af398b5f3dea5564ac1 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Fri, 14 Apr 2017 17:45:47 -0400 Subject: [PATCH] Remove unused resp values. These values were set, but never used. Assign to blank identifier instead. Found with staticcheck: $ staticcheck httpcache_test.go:1122:2: this value of resp is never used (SA4006) httpcache_test.go:1209:2: this value of resp is never used (SA4006) --- httpcache_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpcache_test.go b/httpcache_test.go index b13760a..69ad4aa 100644 --- a/httpcache_test.go +++ b/httpcache_test.go @@ -1119,7 +1119,7 @@ func TestStaleIfErrorRequestLifetime(t *testing.T) { // If failure last more than max stale, error is returned clock = &fakeClock{elapsed: 200 * time.Second} - resp, err = tp.RoundTrip(r) + _, err = tp.RoundTrip(r) if err != tmock.err { t.Fatalf("got err %v, want %v", err, tmock.err) } @@ -1206,7 +1206,7 @@ func TestStaleIfErrorResponseLifetime(t *testing.T) { // If failure last more than max stale, error is returned clock = &fakeClock{elapsed: 200 * time.Second} - resp, err = tp.RoundTrip(r) + _, err = tp.RoundTrip(r) if err != tmock.err { t.Fatalf("got err %v, want %v", err, tmock.err) }