Skip to content

Commit a6cea59

Browse files
authored
Update tool dependencies (#29030)
1 parent a9bc590 commit a6cea59

File tree

7 files changed

+5
-12
lines changed

7 files changed

+5
-12
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@ COMMA := ,
2525

2626
XGO_VERSION := go-1.21.x
2727

28-
AIR_PACKAGE ?= github.com/cosmtrek/air@v1.44.0
28+
AIR_PACKAGE ?= github.com/cosmtrek/air@v1.49.0
2929
EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/cmd/[email protected]
30-
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.5.0
31-
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected].0
30+
GOFUMPT_PACKAGE ?= mvdan.cc/gofumpt@v0.6.0
31+
GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/[email protected].2
3232
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/[email protected]
3333
MISSPELL_PACKAGE ?= github.com/client9/misspell/cmd/[email protected]
3434
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/[email protected]
3535
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
3636
GO_LICENSES_PACKAGE ?= github.com/google/[email protected]
37-
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/[email protected].1
38-
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/[email protected].25
37+
GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/[email protected].3
38+
ACTIONLINT_PACKAGE ?= github.com/rhysd/actionlint/cmd/[email protected].26
3939

4040
DOCKER_IMAGE ?= gitea/gitea
4141
DOCKER_TAG ?= latest

models/asymkey/gpg_key_verify.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ func VerifyGPGKey(ctx context.Context, ownerID int64, keyID, token, signature st
6363
}
6464
if signer == nil {
6565
signer, err = hashAndVerifyWithSubKeys(sig, token+"\n", key)
66-
6766
if err != nil {
6867
return "", ErrGPGInvalidTokenSignature{
6968
ID: key.KeyID,

modules/lfs/http_client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ func (c *HTTPClient) performOperation(ctx context.Context, objects []Pointer, dc
168168
}
169169

170170
err = transferAdapter.Upload(ctx, link, object.Pointer, content)
171-
172171
if err != nil {
173172
return err
174173
}

modules/markup/markdown/goldmark.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ func (r *HTMLRenderer) renderIcon(w util.BufWriter, source []byte, node ast.Node
440440

441441
var err error
442442
_, err = w.WriteString(fmt.Sprintf(`<i class="icon %s"></i>`, name))
443-
444443
if err != nil {
445444
return ast.WalkStop, err
446445
}

routers/api/v1/repo/commits.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ func GetAllCommits(ctx *context.APIContext) {
205205
Not: not,
206206
Revision: []string{baseCommit.ID.String()},
207207
})
208-
209208
if err != nil {
210209
ctx.Error(http.StatusInternalServerError, "GetCommitsCount", err)
211210
return
@@ -245,7 +244,6 @@ func GetAllCommits(ctx *context.APIContext) {
245244
Not: not,
246245
Page: listOptions.Page,
247246
})
248-
249247
if err != nil {
250248
ctx.Error(http.StatusInternalServerError, "CommitsByFileAndRange", err)
251249
return

routers/web/feed/convert.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,6 @@ func releasesToFeedItems(ctx *context.Context, releases []*repo_model.Release, i
296296
},
297297
Metas: rel.Repo.ComposeMetas(ctx),
298298
}, rel.Note)
299-
300299
if err != nil {
301300
return nil, err
302301
}

services/repository/check.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ func GitGcRepo(ctx context.Context, repo *repo_model.Repository, timeout time.Du
9191
var stdout string
9292
var err error
9393
stdout, _, err = command.RunStdString(&git.RunOpts{Timeout: timeout, Dir: repo.RepoPath()})
94-
9594
if err != nil {
9695
log.Error("Repository garbage collection failed for %-v. Stdout: %s\nError: %v", repo, stdout, err)
9796
desc := fmt.Sprintf("Repository garbage collection failed for %s. Stdout: %s\nError: %v", repo.RepoPath(), stdout, err)

0 commit comments

Comments
 (0)