aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-21 05:55:46 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2019-07-29 17:31:40 +0200
commitaf46dd50e9e0bea569449c4a70fc9217594cb2ba (patch)
treecf18ed6487f76a450bb89bde0f9028edec8beee8 /plumbing/transport
parentd3c45dc2f0898d5a5bd48860eb74005faa6c8ec5 (diff)
downloadgo-git-af46dd50e9e0bea569449c4a70fc9217594cb2ba.tar.gz
*: fixed tautological error conditionsautological error conditions
- Added missing error handling around encodeCommitData and prevented shadowing err. - Removed tautological error checks. Signed-off-by: Christian Muehlhaeuser <muesli@gmail.com> (cherry picked from commit 7d76176416551fc21d98bc17768d158a82281406)
Diffstat (limited to 'plumbing/transport')
-rw-r--r--plumbing/transport/server/server.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/plumbing/transport/server/server.go b/plumbing/transport/server/server.go
index 20bd12e..8e0dcc1 100644
--- a/plumbing/transport/server/server.go
+++ b/plumbing/transport/server/server.go
@@ -286,11 +286,6 @@ func (s *rpSession) updateReferences(req *packp.ReferenceUpdateRequest) {
continue
}
- if err != nil {
- s.setStatus(cmd.Name, err)
- continue
- }
-
ref := plumbing.NewHashReference(cmd.Name, cmd.New)
err := s.storer.SetReference(ref)
s.setStatus(cmd.Name, err)