aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/format/commitgraph/commitgraph_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/format/commitgraph/commitgraph_test.go')
-rw-r--r--plumbing/format/commitgraph/commitgraph_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/plumbing/format/commitgraph/commitgraph_test.go b/plumbing/format/commitgraph/commitgraph_test.go
index b984142..837f32f 100644
--- a/plumbing/format/commitgraph/commitgraph_test.go
+++ b/plumbing/format/commitgraph/commitgraph_test.go
@@ -116,8 +116,7 @@ func (s *CommitgraphSuite) TestReencodeInMemory(c *C) {
for i, hash := range index.Hashes() {
node, err := index.GetNodeByIndex(i)
c.Assert(err, IsNil)
- err = memoryIndex.Add(hash, node)
- c.Assert(err, IsNil)
+ memoryIndex.Add(hash, node)
}
reader.Close()