mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 07:30:25 +00:00
NOISSUE - Replace interface{} with any (#285)
Signed-off-by: dusan <borovcanindusan1@gmail.com>
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ func setConfigValue(key, value string) error {
|
||||
}
|
||||
}
|
||||
|
||||
configKeyToField := map[string]interface{}{
|
||||
configKeyToField := map[string]any{
|
||||
"channels_url": &config.Remotes.ChannelsURL,
|
||||
"clients_url": &config.Remotes.ClientsURL,
|
||||
"groups_url": &config.Remotes.GroupsURL,
|
||||
|
||||
+1
-1
@@ -43,7 +43,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 {
|
||||
|
||||
Reference in New Issue
Block a user