mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Fix nil dereference on error (#30740)
In both cases, the `err` is nil because of `if` checks before Reference: #30729 (cherry picked from commit 970965f6d8fb4e68613ca445d2414c6c796b5231)
This commit is contained in:
parent
7517e70740
commit
ec6d46bc8f
2 changed files with 5 additions and 4 deletions
|
@ -552,7 +552,7 @@ func getRunJobs(ctx *context_module.Context, runIndex, jobIndex int64) (*actions
|
|||
return nil, nil
|
||||
}
|
||||
if len(jobs) == 0 {
|
||||
ctx.Error(http.StatusNotFound, err.Error())
|
||||
ctx.Error(http.StatusNotFound)
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue