Skip to content

Commit 0d19480

Browse files
committed
remove unused ctx param
1 parent 8f85398 commit 0d19480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/github/actions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ func getJobLogData(ctx context.Context, client *github.Client, owner, repo strin
722722

723723
if returnContent {
724724
// Download and return the actual log content
725-
content, originalLength, httpResp, err := downloadLogContent(ctx, url.String(), tailLines) //nolint:bodyclose // Response body is closed in downloadLogContent, but we need to return httpResp
725+
content, originalLength, httpResp, err := downloadLogContent(url.String(), tailLines) //nolint:bodyclose // Response body is closed in downloadLogContent, but we need to return httpResp
726726
if err != nil {
727727
// To keep the return value consistent wrap the response as a GitHub Response
728728
ghRes := &github.Response{
@@ -743,7 +743,7 @@ func getJobLogData(ctx context.Context, client *github.Client, owner, repo strin
743743
return result, resp, nil
744744
}
745745

746-
func downloadLogContent(ctx context.Context, logURL string, tailLines int) (string, int, *http.Response, error) {
746+
func downloadLogContent(logURL string, tailLines int) (string, int, *http.Response, error) {
747747
httpResp, err := http.Get(logURL) //nolint:gosec
748748
if err != nil {
749749
return "", 0, httpResp, fmt.Errorf("failed to download logs: %w", err)

0 commit comments

Comments
 (0)