From bb96c0e82cf27980c40158b0098b1e9d34a8db60 Mon Sep 17 00:00:00 2001 From: Dominik Richter Date: Tue, 23 Jan 2024 12:01:12 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9F=A2=20lint=20recording=20in=20cmd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dominik Richter --- apps/cnquery/cmd/scan.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/cnquery/cmd/scan.go b/apps/cnquery/cmd/scan.go index 9eb2dfc26d..2d513b4d96 100644 --- a/apps/cnquery/cmd/scan.go +++ b/apps/cnquery/cmd/scan.go @@ -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)