tq/custom: use initialized lfsapi.Client

This commit is contained in:
Taylor Blau 2017-03-17 12:57:44 -06:00
parent 8708623120
commit f9f181b786

@ -12,7 +12,6 @@ import (
"time" "time"
"github.com/git-lfs/git-lfs/errors" "github.com/git-lfs/git-lfs/errors"
"github.com/git-lfs/git-lfs/lfsapi"
"github.com/git-lfs/git-lfs/tools" "github.com/git-lfs/git-lfs/tools"
"github.com/git-lfs/git-lfs/subprocess" "github.com/git-lfs/git-lfs/subprocess"
@ -316,8 +315,7 @@ func (a *customAdapter) DoTransfer(ctx interface{}, t *Transfer, cb ProgressCall
return fmt.Errorf("Failed to copy downloaded file: %v", err) return fmt.Errorf("Failed to copy downloaded file: %v", err)
} }
} else if a.direction == Upload { } else if a.direction == Upload {
cli := &lfsapi.Client{} if err = verifyUpload(a.apiClient, t); err != nil {
if err = verifyUpload(cli, t); err != nil {
return err return err
} }
} }