Skip to content

Commit

Permalink
Try to simplify expression as suggested by static analysis jfrog#1035
Browse files Browse the repository at this point in the history
  • Loading branch information
guyshe-jfrog committed Nov 29, 2023
1 parent 2443d5f commit 4c60c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xray/commands/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Check failure on line 269 in xray/commands/scan/scan.go

View workflow job for this annotation

GitHub Actions / Static-Check

underef: could simplify (*scanCmd).spec to scanCmd.spec (gocritic)
scanResults.JasError = runJasScannersAndSetResults(scanResults, cveList, scanCmd.serverDetails, workingDirs, scanCmd.progress, multiScanId, thirdPartyApplicabilityScan)
}

Expand Down

0 comments on commit 4c60c61

Please sign in to comment.