mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
chore(code): replace interface{} with any EE-6513 (#11986)
This commit is contained in:
parent
9c4935286f
commit
f0d43f941f
66 changed files with 231 additions and 231 deletions
|
@ -15,10 +15,10 @@ func init() {
|
|||
portainerContainerId, _ = os.Hostname()
|
||||
}
|
||||
|
||||
func (transport *Transport) applyPortainerContainers(resources []interface{}) ([]interface{}, error) {
|
||||
decoratedResourceData := make([]interface{}, 0)
|
||||
func (transport *Transport) applyPortainerContainers(resources []any) ([]any, error) {
|
||||
decoratedResourceData := make([]any, 0)
|
||||
for _, resource := range resources {
|
||||
responseObject, ok := resource.(map[string]interface{})
|
||||
responseObject, ok := resource.(map[string]any)
|
||||
if !ok {
|
||||
decoratedResourceData = append(decoratedResourceData, resource)
|
||||
continue
|
||||
|
@ -30,7 +30,7 @@ func (transport *Transport) applyPortainerContainers(resources []interface{}) ([
|
|||
return decoratedResourceData, nil
|
||||
}
|
||||
|
||||
func (transport *Transport) applyPortainerContainer(resourceObject map[string]interface{}) (map[string]interface{}, error) {
|
||||
func (transport *Transport) applyPortainerContainer(resourceObject map[string]any) (map[string]any, error) {
|
||||
resourceId, ok := resourceObject["Id"].(string)
|
||||
if !ok {
|
||||
return resourceObject, nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue