Skip to content

Commit

Permalink
*: Make go vet happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaut committed Nov 23, 2015
1 parent d8ae7c1 commit c130881
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions store/localstore/boltdb/boltdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (s *testSuite) TestPutNilAndDelete(c *C) {

found := false
rawDB.View(func(tx *bolt.Tx) error {
b := tx.Bucket(bucketName)
c := b.Cursor()
b1 := tx.Bucket(bucketName)
c := b1.Cursor()
for k, _ := c.First(); k != nil; k, _ = c.Next() {
if string(k) == "aa" {
found = true
Expand Down
2 changes: 1 addition & 1 deletion store/localstore/mvcc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (t *testMvccSuite) TestMvccPutAndDel(c *C) {
// remove 0,1,2
for i := 0; i < 3; i++ {
val := encodeInt(i)
err := txn.Delete(val)
err = txn.Delete(val)
c.Assert(err, IsNil)
}
txn.Commit()
Expand Down
2 changes: 1 addition & 1 deletion tidb-server/server/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func (cc *clientConn) writeResultset(rs ResultSet, binary bool) error {
}
}

if err := cc.writeEOF(); err != nil {
if err = cc.writeEOF(); err != nil {
return errors.Trace(err)
}

Expand Down

0 comments on commit c130881

Please sign in to comment.