Skip to content

Commit

Permalink
Fix unhandled error in actions_artifacts.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mo1ein committed Sep 13, 2022
1 parent e2f7379 commit 0163c44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions github/actions_artifacts.go
Expand Up @@ -121,6 +121,10 @@ 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 parsedURL, newResponse(resp), nil
}

Expand Down

0 comments on commit 0163c44

Please sign in to comment.