1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

core: update to golangci-lint v2

This commit is contained in:
bbedward
2025-12-01 12:23:34 -05:00
parent 50f174be92
commit f5ca4ccce5
24 changed files with 302 additions and 274 deletions

View File

@@ -8,9 +8,9 @@ import (
)
type Request struct {
ID int `json:"id"`
Method string `json:"method"`
Params map[string]interface{} `json:"params"`
ID int `json:"id"`
Method string `json:"method"`
Params map[string]any `json:"params"`
}
func HandleRequest(conn net.Conn, req Request, manager *Manager) {
@@ -44,7 +44,7 @@ func handleOpen(conn net.Conn, req Request, manager *Manager) {
event.MimeType = mimeType
}
if categories, ok := req.Params["categories"].([]interface{}); ok {
if categories, ok := req.Params["categories"].([]any); ok {
event.Categories = make([]string, 0, len(categories))
for _, cat := range categories {
if catStr, ok := cat.(string); ok {