diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-21 05:55:46 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2019-07-29 17:31:40 +0200 |
commit | af46dd50e9e0bea569449c4a70fc9217594cb2ba (patch) | |
tree | cf18ed6487f76a450bb89bde0f9028edec8beee8 /remote.go | |
parent | d3c45dc2f0898d5a5bd48860eb74005faa6c8ec5 (diff) | |
download | go-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -937,7 +937,7 @@ func (r *Remote) updateLocalReferenceStorage( updated = true } - if err == nil && forceNeeded { + if forceNeeded { err = ErrForceNeeded } |