diff options
author | Santiago M. Mola <santi@mola.io> | 2017-04-26 13:35:20 +0200 |
---|---|---|
committer | Santiago M. Mola <santi@mola.io> | 2017-04-26 14:52:48 +0200 |
commit | 4b5b96270ad44333afd8fe8ac17d320459ad1cf1 (patch) | |
tree | 4ac3069939168b2f65caeb79a570d7b8779ef2fe | |
parent | 250ba298a9ec93ab3c62a8aa60834cc1889f65ac (diff) | |
download | go-git-4b5b96270ad44333afd8fe8ac17d320459ad1cf1.tar.gz |
object: avoid unreachable code
-rw-r--r-- | plumbing/object/change_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plumbing/object/change_test.go b/plumbing/object/change_test.go index 005ceb0..bfd4613 100644 --- a/plumbing/object/change_test.go +++ b/plumbing/object/change_test.go @@ -236,10 +236,7 @@ func (s *ChangeSuite) TestNoFileFilemodes(c *C) { c.Assert(err, IsNil) for _, change := range changes { _, _, err := change.Files() - if err != nil { - panic(err) - c.Assert(err, IsNil) - } + c.Assert(err, IsNil) } prev = commit |