Skip to content

Commit

Permalink
🐛 scdiff: fix generate cmd when no --checks arg provided. (ossf#3570)
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
  • Loading branch information
spencerschrock authored and diogoteles08 committed Nov 13, 2023
1 parent 50f5231 commit c537441
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 c537441

Please sign in to comment.