diff options
author | silverwind <me@silverwind.io> | 2024-04-13 19:32:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 17:32:15 +0000 |
commit | c77e8140bc2ac6521dbebfb77613dce2648bfcb8 (patch) | |
tree | eeb2ef97ebfe03ff71c3a413c5e20cd76f0bdb98 /services/actions | |
parent | af02b8a0e9b00a324fb92f1f73ea386dd9595c3d (diff) | |
download | gitea-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.go | 2 |
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) |