Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Jul 19, 2024
1 parent 2432044 commit 6e4fb3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ func mainExec(ctx *cli.Context) error {
replacements := make(map[string]string)
for _, v := range vars {
idx := strings.Index(v, "=")
if idx <= 0 {
fatal(probe.NewError(fmt.Errorf("unable to parse %q", v)), "unable to parse --var")
}
name := v[:idx]
replacements[name] = v[idx+1:]
}
Expand Down Expand Up @@ -153,7 +156,7 @@ func mainExec(ctx *cli.Context) error {

var prefixStack []string
var currDept []string
var flags = map[string]string{}
flags := map[string]string{}
setFlag := func(key string, value any) {
name := strings.Join(append(prefixStack, key), ".")
ogName := strings.Join(append(currDept, key), ".")
Expand Down

0 comments on commit 6e4fb3f

Please sign in to comment.