aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-12-12 11:06:24 +0100
committerGitHub <noreply@github.com>2018-12-12 11:06:24 +0100
commit791aea319719ee757cb862e83ec43b25113de2c1 (patch)
tree25e9367abdeb62620383fd6a35ae3ca08e73d885
parent94ddfeb46ae98274afb8089f2bedfe48ee90b3b9 (diff)
parent00234081afbf51721d44b436d698fee45ee95497 (diff)
downloadgo-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.go6
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,