diff --git a/xray/commands/scan/scan.go b/xray/commands/scan/scan.go index 21e0ae968..7e606129a 100644 --- a/xray/commands/scan/scan.go +++ b/xray/commands/scan/scan.go @@ -266,7 +266,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) }