Skip to content

Commit

Permalink
Fix return value
Browse files Browse the repository at this point in the history
  • Loading branch information
mo1ein committed Sep 15, 2022
1 parent 24ad5e3 commit 1ac8032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/actions_artifacts.go
Expand Up @@ -122,7 +122,7 @@ func (s *ActionsService) DownloadArtifact(ctx context.Context, owner, repo strin

parsedURL, err := url.Parse(resp.Header.Get("Location"))
if err != nil {
return nil, nil, err
return nil, newResponse(resp), err
}

return parsedURL, newResponse(resp), nil
Expand Down

0 comments on commit 1ac8032

Please sign in to comment.