It's never pointers

This commit is contained in:
zachgersh
2015-08-04 22:20:37 -07:00
parent 65650bf3ea
commit 9b77017aaf
2 changed files with 15 additions and 4 deletions

View File

@@ -95,7 +95,8 @@ func (c *InCommand) Run(destDir string, request InRequest) (InResponse, error) {
fmt.Fprintf(c.writer, "downloading asset: %s\n", *asset.Name)
err := c.downloadFile(&asset, path)
assetToDownload := asset
err := c.downloadFile(&assetToDownload, path)
if err != nil {
return InResponse{}, err
}