From 4b5b96270ad44333afd8fe8ac17d320459ad1cf1 Mon Sep 17 00:00:00 2001 From: "Santiago M. Mola" Date: Wed, 26 Apr 2017 13:35:20 +0200 Subject: object: avoid unreachable code --- plumbing/object/change_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plumbing/object/change_test.go') 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 -- cgit