chore: re-enable nilnil lint for models/actions/run.go (#12507)

`GetRunByID` is now the primary function to get a action run. `GetRunBefore` now returns `util.ErrNotExist` to avoid the nilnil pattern.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12507
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
Fabian Weik
2026-05-25 14:52:57 +02:00
committed by Gusted
parent 385c0db94f
commit af412159ce
4 changed files with 37 additions and 22 deletions
-3
View File
@@ -189,9 +189,6 @@ linters:
text: "(ST1005|ST1003|QF1001):"
# TODO: eventually remove this section entirely
- path: models/actions/run.go
linters:
- nilnil
- path: models/actions/task.go
linters:
- nilnil