Skip to content

Commit

Permalink
simple code
Browse files Browse the repository at this point in the history
  • Loading branch information
crazybber committed Mar 25, 2022
1 parent 7e8ee7e commit 64d1f77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/dynamic.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ func flagsToRequest(flags map[string][]string, req *registry.Value) (map[string]
// so we do that here
if strings.Contains(key, "_") {
parts := strings.Split(key, "_")
for i, _ := range parts {
for i := range parts {
pToCreate := strings.Join(parts[0:i], ".")
if i > 0 && i < len(parts) && !result.Has(pToCreate) {
result.Set(pToCreate, map[string]interface{}{})
Expand Down
3 changes: 2 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"mname",
"mucp",
"muxer",
"objx",
"Orgs",
"osexec",
"outp",
Expand All @@ -56,4 +57,4 @@
"Warnf",
"Wrapf"
]
}
}

0 comments on commit 64d1f77

Please sign in to comment.