mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
enable gosimple linter (#10744)
This commit is contained in:
parent
d98fc1238e
commit
8396ff068d
4 changed files with 7 additions and 5 deletions
|
@ -147,11 +147,11 @@ func addResourceLabels(yamlDoc interface{}, appLabels map[string]string) {
|
|||
}
|
||||
|
||||
for _, v := range m {
|
||||
switch v.(type) {
|
||||
switch v := v.(type) {
|
||||
case map[string]interface{}:
|
||||
addResourceLabels(v, appLabels)
|
||||
case []interface{}:
|
||||
for _, item := range v.([]interface{}) {
|
||||
for _, item := range v {
|
||||
addResourceLabels(item, appLabels)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue