]> source.dussan.org Git - gitea.git/commit
Fix nil dereference on error (#30740)
authorChongyi Zheng <git@zcy.dev>
Sun, 28 Apr 2024 04:13:57 +0000 (00:13 -0400)
committerGitHub <noreply@github.com>
Sun, 28 Apr 2024 04:13:57 +0000 (12:13 +0800)
commit970965f6d8fb4e68613ca445d2414c6c796b5231
tree6bb3be8eb0c990fc0601f95232110fe8b6b711cf
parent8b8b48ef5fb1c5c164d5534ea4b8049f1db26ce9
Fix nil dereference on error (#30740)

In both cases, the `err` is nil because of `if` checks before

Reference: #30729
routers/api/actions/artifacts.go
routers/web/repo/actions/view.go