Convert the remaining interface{}s to any

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2024-04-14 14:36:40 +02:00
parent a59a32eb08
commit 5bf959a3a5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -376,7 +376,7 @@ func Action(ctx *context.Context) {
}
if redirectViaJSON {
ctx.JSON(http.StatusOK, map[string]interface{}{
ctx.JSON(http.StatusOK, map[string]any{
"redirect": ctx.ContextUser.HomeLink(),
})
return

View file

@ -621,7 +621,7 @@ func VerifyJSONSchema(t testing.TB, resp *httptest.ResponseRecorder, schemaFile
schema, err := jsonschema.Compile(schemaFilePath)
assert.NoError(t, err)
var data interface{}
var data any
err = json.Unmarshal(resp.Body.Bytes(), &data)
assert.NoError(t, err)