Skip to content

Commit 556a41c

Browse files
committed
remove impossible conditional
1 parent 4a673c9 commit 556a41c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/github/actions.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -757,10 +757,6 @@ func downloadLogContent(ctx context.Context, logURL string, tailLines int, maxLi
757757
return "", 0, httpResp, fmt.Errorf("failed to download logs: HTTP %d", httpResp.StatusCode)
758758
}
759759

760-
if tailLines <= 0 {
761-
tailLines = 1000
762-
}
763-
764760
bufferSize := tailLines
765761
if bufferSize > maxLines {
766762
bufferSize = maxLines

0 commit comments

Comments
 (0)