diff options
author | Filip Navara <navara@emclient.com> | 2019-04-25 06:58:36 +0200 |
---|---|---|
committer | Filip Navara <navara@emclient.com> | 2019-04-25 06:58:36 +0200 |
commit | 64f9d9a20765076eb024d38b2278a100829bf155 (patch) | |
tree | 9ee2fd61c70822031d206512f78a594ace916b0e /plumbing/format/commitgraph/commitgraph_test.go | |
parent | 5c6d199dc675465f5e103ea36c0bfcb9d3ebc565 (diff) | |
download | go-git-64f9d9a20765076eb024d38b2278a100829bf155.tar.gz |
plumbing: format/commitgraph, clean up error handling
Signed-off-by: Filip Navara <navara@emclient.com>
Diffstat (limited to 'plumbing/format/commitgraph/commitgraph_test.go')
-rw-r--r-- | plumbing/format/commitgraph/commitgraph_test.go | 3 |
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()
|