From f72c6299bdd791e16d2622409237f3e4d926ada1 Mon Sep 17 00:00:00 2001 From: Guy Sheffer Date: Wed, 6 Dec 2023 14:28:19 +0200 Subject: [PATCH] Simplyfy as requested by static code analysis #1035 --- xray/commands/scan/scan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xray/commands/scan/scan.go b/xray/commands/scan/scan.go index 0a84fa2de..aede0df29 100644 --- a/xray/commands/scan/scan.go +++ b/xray/commands/scan/scan.go @@ -267,7 +267,7 @@ func (scanCmd *ScanCommand) Run() (err error) { cveList := cveListFromVulnerabilities(flatResults) multiScanId := "" // Also empty for audit thirdPartyApplicabilityScan := false - workingDirs := []string{(*scanCmd).spec.Files[0].Pattern} + workingDirs := []string{scanCmd.spec.Files[0].Pattern} scanResults.JasError = runJasScannersAndSetResults(scanResults, cveList, scanCmd.serverDetails, workingDirs, multiScanId, thirdPartyApplicabilityScan) }