aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
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 /remote.go
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 'remote.go')
-rw-r--r--remote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index e229ef1..baee7a0 100644
--- a/remote.go
+++ b/remote.go
@@ -937,7 +937,7 @@ func (r *Remote) updateLocalReferenceStorage(
updated = true
}
- if err == nil && forceNeeded {
+ if forceNeeded {
err = ErrForceNeeded
}