Chore: use any rather than interface{} (#74066)

This commit is contained in:
Ryan McKinley
2023-08-30 18:46:47 +03:00
committed by GitHub
parent 3e272d2bda
commit 025b2f3011
525 changed files with 2528 additions and 2528 deletions
+3 -3
View File
@@ -13,8 +13,8 @@ import (
// GetJsonData just gets the json in easier to work with type. It's used on multiple places which isn't super effective
// but only when creating a client which should not happen often anyway.
func GetJsonData(settings backend.DataSourceInstanceSettings) (map[string]interface{}, error) {
var jsonData map[string]interface{}
func GetJsonData(settings backend.DataSourceInstanceSettings) (map[string]any, error) {
var jsonData map[string]any
err := json.Unmarshal(settings.JSONData, &jsonData)
if err != nil {
return nil, fmt.Errorf("error unmarshalling JSONData: %w", err)
@@ -24,7 +24,7 @@ func GetJsonData(settings backend.DataSourceInstanceSettings) (map[string]interf
type Attribute struct {
Key string
Value interface{}
Value any
Kv attribute.KeyValue
}