Skip to content

Commit

Permalink
🐛 scdiff: fix generate cmd when no --checks arg provided. (#3570)
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <sschrock@google.com>
  • Loading branch information
spencerschrock committed Oct 16, 2023
1 parent 8eaf0d7 commit b9bbb82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/internal/scdiff/app/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ var (
defer outputF.Close()
output = outputF
}
checks := strings.Split(checksArg, ",")
var checks []string
if checksArg != "" {
checks = strings.Split(checksArg, ",")
}
r := runner.New(checks)
return generate(&r, input, output)
},
Expand Down

0 comments on commit b9bbb82

Please sign in to comment.