We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b9ecc commit acbb69cCopy full SHA for acbb69c
routers/common/actions.go
@@ -22,7 +22,7 @@ func DownloadActionsRunJobLogsWithIndex(ctx *context.Base, ctxRepo *repo_model.R
22
if err = runJobs.LoadRepos(ctx); err != nil {
23
return fmt.Errorf("LoadRepos: %w", err)
24
}
25
- if 0 < jobIndex || jobIndex >= int64(len(runJobs)) {
+ if jobIndex < 0 || jobIndex >= int64(len(runJobs)) {
26
return util.NewNotExistErrorf("job index is out of range: %d", jobIndex)
27
28
return DownloadActionsRunJobLogs(ctx, ctxRepo, runJobs[jobIndex])
0 commit comments