aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object
diff options
context:
space:
mode:
authorSantiago M. Mola <santi@mola.io>2017-04-26 13:35:20 +0200
committerSantiago M. Mola <santi@mola.io>2017-04-26 14:52:48 +0200
commit4b5b96270ad44333afd8fe8ac17d320459ad1cf1 (patch)
tree4ac3069939168b2f65caeb79a570d7b8779ef2fe /plumbing/object
parent250ba298a9ec93ab3c62a8aa60834cc1889f65ac (diff)
downloadgo-git-4b5b96270ad44333afd8fe8ac17d320459ad1cf1.tar.gz
object: avoid unreachable code
Diffstat (limited to 'plumbing/object')
-rw-r--r--plumbing/object/change_test.go5
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