diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 16:50:56 +0200 |
---|---|---|
committer | Oleg Kovalov <iamolegkovalov@gmail.com> | 2020-07-06 16:50:56 +0200 |
commit | d07f2fbd7f615707c5f8b4bde32d5824c4196411 (patch) | |
tree | 471dd4e02088750aeb4adfab85a3c74b5052c1fc /plumbing/protocol/packp/ulreq_encode.go | |
parent | a9899594dfdde8bbfdf35fc7e8c2fc3ec5aa7fdb (diff) | |
download | go-git-d07f2fbd7f615707c5f8b4bde32d5824c4196411.tar.gz |
Use only one name for receiver
Diffstat (limited to 'plumbing/protocol/packp/ulreq_encode.go')
-rw-r--r-- | plumbing/protocol/packp/ulreq_encode.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/protocol/packp/ulreq_encode.go b/plumbing/protocol/packp/ulreq_encode.go index 4863076..c451e23 100644 --- a/plumbing/protocol/packp/ulreq_encode.go +++ b/plumbing/protocol/packp/ulreq_encode.go @@ -15,9 +15,9 @@ import ( // All the payloads will end with a newline character. Wants and // shallows are sorted alphabetically. A depth of 0 means no depth // request is sent. -func (u *UploadRequest) Encode(w io.Writer) error { +func (req *UploadRequest) Encode(w io.Writer) error { e := newUlReqEncoder(w) - return e.Encode(u) + return e.Encode(req) } type ulReqEncoder struct { |