Skip to content

Commit

Permalink
*: Add GoReportCard (pingcap#1267)
Browse files Browse the repository at this point in the history
1. Add goreportcard.
2. Tiny cleanup.
  • Loading branch information
shenli authored and zimulala committed May 30, 2016
1 parent 05043bf commit 1b21901
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<img src="docs/logo_with_text.png" height=100></img>

[![Build Status](https://travis-ci.org/pingcap/tidb.svg?branch=master)](https://travis-ci.org/pingcap/tidb)
[![Go Report Card](https://goreportcard.com/badge/github.com/pingcap/tidb)](https://goreportcard.com/report/github.com/pingcap/tidb)
## What is TiDB?

TiDB is a distributed SQL database.
Expand Down
2 changes: 1 addition & 1 deletion store/tikv/coprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func (it *copIterator) rebuildCurrentTask(task *copTask) error {
return errors.Trace(err)
}
if len(newTasks) == 0 {
// TODO: check this, this should never happend.
// TODO: check this, this should never happen.
return nil
}
it.mu.Lock()
Expand Down
2 changes: 1 addition & 1 deletion store/tikv/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (s *testSnapshotSuite) TestMergeResultNil(c *C) {
func (s *testSnapshotSuite) TestMergeResultConflict(c *C) {
d1 := makeDict([]string{"1", "2"})
d2 := makeDict([]string{"a", "foo", "1"})
d1, err := mergeResult(d1, d2)
_, err := mergeResult(d1, d2)
c.Assert(err, NotNil)
}

Expand Down

0 comments on commit 1b21901

Please sign in to comment.