Skip to content

Commit

Permalink
Fix golint
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Leon <[email protected]>
  • Loading branch information
tylerschultz authored and DennisDenuto committed Dec 14, 2016
1 parent 67e4f3a commit 3cd9978
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions integration/windows/nats_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,21 +550,21 @@ func (n *NatsClient) uploadJob(jobName string) (templateID, renderedTemplateSha
return
}

func (n *NatsClient) uploadPackage(packageName string) (sha1, blobID string, err error) {
func (n *NatsClient) uploadPackage(packageName string) (string, string, error) {
var dirname string
dirname, err = ioutil.TempDir("", "templates")
dirname, err := ioutil.TempDir("", "templates")
if err != nil {
return
return "", "", err
}
defer os.RemoveAll(dirname)

tarfile := filepath.Join(dirname, packageName+".tar")
dir := filepath.Join("fixtures/templates", packageName)
sha1, err = utils.TarDirectory(dir, dir, tarfile)
sha1, err := utils.TarDirectory(dir, dir, tarfile)
if err != nil {
return
return "", "", err
}

blobId, err := n.blobstoreClient.Create(tarfile)
return sha1, blobId, err
blobID, err := n.blobstoreClient.Create(tarfile)
return sha1, blobID, err
}

0 comments on commit 3cd9978

Please sign in to comment.