From 2377ef870aa110ad0f39ebdf10477190bc66010f Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Sun, 20 Dec 2015 14:23:27 -0800 Subject: [PATCH] storage: remove unnecessary test variable assignment There is no need to assign a separate variable since 'base' is already defined as a local variable within the loop. --- storage/kv_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/kv_test.go b/storage/kv_test.go index 66de472bb..80b3ec129 100644 --- a/storage/kv_test.go +++ b/storage/kv_test.go @@ -281,7 +281,7 @@ func testKVPutMultipleTimes(t *testing.T, f putFunc) { base := int64(i + 1) rev := f(s, []byte("foo"), []byte("bar")) - if wrev := base; rev != wrev { + if rev != base { t.Errorf("#%d: rev = %d, want %d", i, rev, base) }