Browse Source

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.
Gyu-Ho Lee 10 years ago
parent
commit
2377ef870a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      storage/kv_test.go

+ 1 - 1
storage/kv_test.go

@@ -281,7 +281,7 @@ func testKVPutMultipleTimes(t *testing.T, f putFunc) {
 		base := int64(i + 1)
 		base := int64(i + 1)
 
 
 		rev := f(s, []byte("foo"), []byte("bar"))
 		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)
 			t.Errorf("#%d: rev = %d, want %d", i, rev, base)
 		}
 		}