diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2018-12-12 11:06:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-12 11:06:24 +0100 |
commit | 791aea319719ee757cb862e83ec43b25113de2c1 (patch) | |
tree | 25e9367abdeb62620383fd6a35ae3ca08e73d885 | |
parent | 94ddfeb46ae98274afb8089f2bedfe48ee90b3b9 (diff) | |
parent | 00234081afbf51721d44b436d698fee45ee95497 (diff) | |
download | go-git-791aea319719ee757cb862e83ec43b25113de2c1.tar.gz |
Merge pull request #1037 from Quasilyte/patch-1
Simplify return statement in receivePackNoCheck
-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, |