diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-07-10 06:15:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 06:15:38 +0200 |
commit | ee580ee459d4eac1c434203cc264523acfae724a (patch) | |
tree | 30b1e5f4788dd6732694494458c5f15a64ddfe66 /plumbing/protocol/packp/updreq.go | |
parent | 13095f770a0ea9be1c103389269fad1d82c55468 (diff) | |
parent | d07f2fbd7f615707c5f8b4bde32d5824c4196411 (diff) | |
download | go-git-ee580ee459d4eac1c434203cc264523acfae724a.tar.gz |
Merge pull request #124 from cristaloleg/use-one-name-for-receiver
*: use only one name for receiver
Diffstat (limited to 'plumbing/protocol/packp/updreq.go')
-rw-r--r-- | plumbing/protocol/packp/updreq.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plumbing/protocol/packp/updreq.go b/plumbing/protocol/packp/updreq.go index b63b023..4d927d8 100644 --- a/plumbing/protocol/packp/updreq.go +++ b/plumbing/protocol/packp/updreq.go @@ -68,12 +68,12 @@ func NewReferenceUpdateRequestFromCapabilities(adv *capability.List) *ReferenceU return r } -func (r *ReferenceUpdateRequest) validate() error { - if len(r.Commands) == 0 { +func (req *ReferenceUpdateRequest) validate() error { + if len(req.Commands) == 0 { return ErrEmptyCommands } - for _, c := range r.Commands { + for _, c := range req.Commands { if err := c.validate(); err != nil { return err } |