1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -05:00

core: replace all use of interface{} with any (#848)

This commit is contained in:
Marcus Ramberg
2025-12-01 17:04:37 +01:00
committed by GitHub
parent cfc07f4411
commit 94851a51aa
60 changed files with 336 additions and 334 deletions

View File

@@ -17,7 +17,7 @@ func TestHandleList(t *testing.T) {
req := models.Request{
ID: 123,
Method: "plugins.list",
Params: map[string]interface{}{},
Params: map[string]any{},
}
HandleList(conn, req)
@@ -30,7 +30,7 @@ func TestHandleListInstalled(t *testing.T) {
req := models.Request{
ID: 123,
Method: "plugins.listInstalled",
Params: map[string]interface{}{},
Params: map[string]any{},
}
HandleListInstalled(conn, req)
@@ -47,7 +47,7 @@ func TestHandleInstallMissingName(t *testing.T) {
req := models.Request{
ID: 123,
Method: "plugins.install",
Params: map[string]interface{}{},
Params: map[string]any{},
}
HandleInstall(conn, req)
@@ -70,7 +70,7 @@ func TestHandleInstallInvalidName(t *testing.T) {
req := models.Request{
ID: 123,
Method: "plugins.install",
Params: map[string]interface{}{
Params: map[string]any{
"name": 123,
},
}
@@ -94,7 +94,7 @@ func TestHandleUninstallMissingName(t *testing.T) {
req := models.Request{
ID: 123,
Method: "plugins.uninstall",
Params: map[string]interface{}{},
Params: map[string]any{},
}
HandleUninstall(conn, req)
@@ -116,7 +116,7 @@ func TestHandleUpdateMissingName(t *testing.T) {
req := models.Request{
ID: 123,
Method: "plugins.update",
Params: map[string]interface{}{},
Params: map[string]any{},
}
HandleUpdate(conn, req)
@@ -138,7 +138,7 @@ func TestHandleSearchMissingQuery(t *testing.T) {
req := models.Request{
ID: 123,
Method: "plugins.search",
Params: map[string]interface{}{},
Params: map[string]any{},
}
HandleSearch(conn, req)