diff options
author | silverwind <me@silverwind.io> | 2023-07-05 05:41:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 23:41:32 -0400 |
commit | 24e64fe37225a315c74c00d1f5e4d024168feea6 (patch) | |
tree | c89664dca5a884d5fc0a322815ce3bc20247cf84 /tests/integration/api_token_test.go | |
parent | 4e310133f95ba8581c121a32596807721bdd6af9 (diff) | |
download | gitea-24e64fe37225a315c74c00d1f5e4d024168feea6.tar.gz gitea-24e64fe37225a315c74c00d1f5e4d024168feea6.zip |
Replace `interface{}` with `any` (#25686) (#25687)
Same perl replacement as https://github.com/go-gitea/gitea/pull/25686
but for 1.20 to ease future backporting.
Diffstat (limited to 'tests/integration/api_token_test.go')
-rw-r--r-- | tests/integration/api_token_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/api_token_test.go b/tests/integration/api_token_test.go index 0eecccb653..419884d45e 100644 --- a/tests/integration/api_token_test.go +++ b/tests/integration/api_token_test.go @@ -519,7 +519,7 @@ func runTestCase(t *testing.T, testCase *requiredScopeTestCase, user *user_model // createAPIAccessTokenWithoutCleanUp Create an API access token and assert that // creation succeeded. The caller is responsible for deleting the token. func createAPIAccessTokenWithoutCleanUp(t *testing.T, tokenName string, user *user_model.User, scopes *[]auth_model.AccessTokenScope) api.AccessToken { - payload := map[string]interface{}{ + payload := map[string]any{ "name": tokenName, } if scopes != nil { |