diff options
author | Iskander (Alex) Sharipov <quasilyte@gmail.com> | 2018-12-11 20:36:01 +0300 |
---|---|---|
committer | Iskander Sharipov <quasilyte@gmail.com> | 2018-12-12 11:32:54 +0300 |
commit | 00234081afbf51721d44b436d698fee45ee95497 (patch) | |
tree | 25e9367abdeb62620383fd6a35ae3ca08e73d885 /plumbing/transport/test | |
parent | 94ddfeb46ae98274afb8089f2bedfe48ee90b3b9 (diff) | |
download | go-git-00234081afbf51721d44b436d698fee45ee95497.tar.gz |
Simplify return statement in receivePackNoCheck
Fixes #1035
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
Diffstat (limited to 'plumbing/transport/test')
-rw-r--r-- | plumbing/transport/test/receive_pack.go | 6 |
1 files changed, 1 insertions, 5 deletions
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, |