NOISSUE - Replace interface{} with any (#3079)

Signed-off-by: dusan <borovcanindusan1@gmail.com>
This commit is contained in:
Dušan Borovčanin
2025-08-25 18:06:41 +02:00
committed by GitHub
parent 0e1a090f16
commit a19cd9c97b
138 changed files with 994 additions and 994 deletions
+2 -2
View File
@@ -292,8 +292,8 @@ func TestUpdateClientCmd(t *testing.T) {
},
client: smqsdk.Client{
Name: "clientName",
Metadata: map[string]interface{}{
"metadata": map[string]interface{}{
Metadata: map[string]any{
"metadata": map[string]any{
"role": "general",
},
},
+1 -1
View File
@@ -250,7 +250,7 @@ func setConfigValue(key, value string) error {
}
}
configKeyToField := map[string]interface{}{
configKeyToField := map[string]any{
"clients_url": &config.Remotes.ClientsURL,
"users_url": &config.Remotes.UsersURL,
"http_adapter_url": &config.Remotes.HTTPAdapterURL,
+3 -3
View File
@@ -44,7 +44,7 @@ var (
LastName string = ""
)
func logJSONCmd(cmd cobra.Command, iList ...interface{}) {
func logJSONCmd(cmd cobra.Command, iList ...any) {
for _, i := range iList {
m, err := json.Marshal(i)
if err != nil {
@@ -85,8 +85,8 @@ func logRevokedTimeCmd(cmd cobra.Command, t time.Time) {
}
}
func convertMetadata(m string) (map[string]interface{}, error) {
var metadata map[string]interface{}
func convertMetadata(m string) (map[string]any, error) {
var metadata map[string]any
if m == "" {
return nil, nil
}