diff options
author | silverwind <me@silverwind.io> | 2024-12-19 19:17:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 19:17:55 +0100 |
commit | 626b27bea56a81055a796d452a9ef4fd6e0f4fca (patch) | |
tree | e09993b72ccdb2c919bcc5cba68732460bc5cf28 /routers/web | |
parent | 581e52b3e78df0da7b31cea107c675dace5e871c (diff) | |
download | gitea-626b27bea56a81055a796d452a9ef4fd6e0f4fca.tar.gz gitea-626b27bea56a81055a796d452a9ef4fd6e0f4fca.zip |
Update go tool dependencies (#32916)
Update all go tool dependencies to latest version. WIP because I think
there are new gopls errors, would like to confirm them on CI first. Here
is from a local run:
```
modules/markup/markdown/goldmark.go:115:37-53: unnecessary type arguments
modules/markup/html.go:45:32-49: unnecessary type arguments
modules/markup/internal/renderinternal.go:20:33-49: unnecessary type arguments
modules/markup/common/linkify.go:27:32-49: unnecessary type arguments
modules/util/time_str.go:28:39-63: unnecessary type arguments
routers/web/repo/pull.go:704:19: impossible condition: non-nil == nil
modules/util/util_test.go:248:14-23: unused parameter: other
```
~~Backport because the `gxz` update might have security benefits.~~
Diffstat (limited to 'routers/web')
-rw-r--r-- | routers/web/repo/pull.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index 9694ae845b..8fd23f835a 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -701,9 +701,6 @@ func viewPullFiles(ctx *context.Context, specifiedStartCommit, specifiedEndCommi if ctx.Written() { return - } else if prInfo == nil { - ctx.NotFound("ViewPullFiles", nil) - return } headCommitID, err := gitRepo.GetRefCommitID(pull.GetGitRefName()) |