refactor: replace interface{} with any in web/shared

This commit is contained in:
2026-04-22 10:55:14 +02:00
parent bd828d68c0
commit fff887f79e
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ package shared
import "encoding/json"
func HxVals(v map[string]interface{}) string {
func HxVals(v map[string]any) string {
b, err := json.Marshal(v)
if err != nil {
return "{}"

View File

@@ -66,7 +66,7 @@ func ModeToken(mode string, modeSources map[string]ModeSource) string {
return source.Token
}
func ToJSON(v interface{}) string {
func ToJSON(v any) string {
b, err := json.Marshal(v)
if err != nil {
log.Printf("ToJSON error: %v", err)