Skip to content

Commit

Permalink
🟢 lint recording in cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus committed Jan 23, 2024
1 parent fbece19 commit bb96c0e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/cnquery/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,7 @@ func RunScan(config *scanConfig) (*explorer.ReportCollection, error) {
if config.runtime.UpstreamConfig != nil {
opts = append(opts, scan.WithUpstream(config.runtime.UpstreamConfig))
}
if config.runtime.Recording != nil {
opts = append(opts, scan.WithRecording(config.runtime.Recording()))
}
opts = append(opts, scan.WithRecording(config.runtime.Recording()))

scanner := scan.NewLocalScanner(opts...)
ctx := cnquery.SetFeatures(context.Background(), config.Features)
Expand Down

0 comments on commit bb96c0e

Please sign in to comment.