From 00234081afbf51721d44b436d698fee45ee95497 Mon Sep 17 00:00:00 2001 From: "Iskander (Alex) Sharipov" Date: Tue, 11 Dec 2018 20:36:01 +0300 Subject: Simplify return statement in receivePackNoCheck Fixes #1035 Signed-off-by: Iskander Sharipov --- plumbing/transport/test/receive_pack.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plumbing/transport/test/receive_pack.go') diff --git a/plumbing/transport/test/receive_pack.go b/plumbing/transport/test/receive_pack.go index 5aea1c0..8dcde8b 100644 --- a/plumbing/transport/test/receive_pack.go +++ b/plumbing/transport/test/receive_pack.go @@ -262,11 +262,7 @@ func (s *ReceivePackSuite) receivePackNoCheck(c *C, ep *transport.Endpoint, req.Packfile = s.emptyPackfile() } - if s, err := r.ReceivePack(context.Background(), req); err != nil { - return s, err - } else { - return s, err - } + return r.ReceivePack(context.Background(), req) } func (s *ReceivePackSuite) receivePack(c *C, ep *transport.Endpoint, -- cgit