aboutsummaryrefslogtreecommitdiffstats
path: root/services/actions
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-04-13 19:32:15 +0200
committerGitHub <noreply@github.com>2024-04-13 17:32:15 +0000
commitc77e8140bc2ac6521dbebfb77613dce2648bfcb8 (patch)
treeeeb2ef97ebfe03ff71c3a413c5e20cd76f0bdb98 /services/actions
parentaf02b8a0e9b00a324fb92f1f73ea386dd9595c3d (diff)
downloadgitea-c77e8140bc2ac6521dbebfb77613dce2648bfcb8.tar.gz
gitea-c77e8140bc2ac6521dbebfb77613dce2648bfcb8.zip
Add `interface{}` to `any` replacement to `make fmt`, exclude `*.pb.go` (#30461)
Since https://github.com/go-gitea/gitea/pull/25686, a few `interface{}` have sneaked into the codebase. Add this replacement to `make fmt` to prevent this from happening again. Ideally a linter would do this, but I haven't found any suitable.
Diffstat (limited to 'services/actions')
-rw-r--r--services/actions/auth_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/actions/auth_test.go b/services/actions/auth_test.go
index f73ae8ae4c..12db2bae56 100644
--- a/services/actions/auth_test.go
+++ b/services/actions/auth_test.go
@@ -20,7 +20,7 @@ func TestCreateAuthorizationToken(t *testing.T) {
assert.Nil(t, err)
assert.NotEqual(t, "", token)
claims := jwt.MapClaims{}
- _, err = jwt.ParseWithClaims(token, claims, func(t *jwt.Token) (interface{}, error) {
+ _, err = jwt.ParseWithClaims(token, claims, func(t *jwt.Token) (any, error) {
return setting.GetGeneralTokenSigningSecret(), nil
})
assert.Nil(t, err)