diff --git a/xray/commands/scan/scan.go b/xray/commands/scan/scan.go index 4ff51c4ce..383798028 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, scanCmd.progress, multiScanId, thirdPartyApplicabilityScan) }