@@ -73,7 +73,7 @@ func (r *Remote) Push(o *PushOptions) error {
7373// The provided Context must be non-nil. If the context expires before the
7474// operation is complete, an error is returned. The context only affects to the
7575// transport operations.
76- func (r * Remote ) PushContext (ctx context.Context , o * PushOptions ) error {
76+ func (r * Remote ) PushContext (ctx context.Context , o * PushOptions ) ( err error ) {
7777 if err := o .Validate (); err != nil {
7878 return err
7979 }
@@ -243,12 +243,12 @@ func (r *Remote) Fetch(o *FetchOptions) error {
243243 return r .FetchContext (context .Background (), o )
244244}
245245
246- func (r * Remote ) fetch (ctx context.Context , o * FetchOptions ) (storer.ReferenceStorer , error ) {
246+ func (r * Remote ) fetch (ctx context.Context , o * FetchOptions ) (sto storer.ReferenceStorer , err error ) {
247247 if o .RemoteName == "" {
248248 o .RemoteName = r .c .Name
249249 }
250250
251- if err : = o .Validate (); err != nil {
251+ if err = o .Validate (); err != nil {
252252 return nil , err
253253 }
254254
@@ -295,7 +295,7 @@ func (r *Remote) fetch(ctx context.Context, o *FetchOptions) (storer.ReferenceSt
295295 return nil , err
296296 }
297297
298- if err : = r .fetchPack (ctx , o , s , req ); err != nil {
298+ if err = r .fetchPack (ctx , o , s , req ); err != nil {
299299 return nil , err
300300 }
301301 }
@@ -354,7 +354,7 @@ func (r *Remote) fetchPack(ctx context.Context, o *FetchOptions, s transport.Upl
354354
355355 defer ioutil .CheckClose (reader , & err )
356356
357- if err : = r .updateShallow (o , reader ); err != nil {
357+ if err = r .updateShallow (o , reader ); err != nil {
358358 return err
359359 }
360360
@@ -872,7 +872,7 @@ func (r *Remote) buildFetchedTags(refs memory.ReferenceStorage) (updated bool, e
872872}
873873
874874// List the references on the remote repository.
875- func (r * Remote ) List (o * ListOptions ) ([]* plumbing.Reference , error ) {
875+ func (r * Remote ) List (o * ListOptions ) (rfs []* plumbing.Reference , err error ) {
876876 s , err := newUploadPackSession (r .c .URLs [0 ], o .Auth )
877877 if err != nil {
878878 return nil , err
0 commit comments