From b666f491877624a1427f57a4a6eca6350ae85b73 Mon Sep 17 00:00:00 2001 From: Omer Zidkoni Date: Wed, 16 Aug 2023 08:40:40 +0300 Subject: [PATCH] update core --- xray/audit/jas/jasmanager.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xray/audit/jas/jasmanager.go b/xray/audit/jas/jasmanager.go index 1b4ed0ff9..e8251633a 100644 --- a/xray/audit/jas/jasmanager.go +++ b/xray/audit/jas/jasmanager.go @@ -79,9 +79,7 @@ func GetExtendedScanResults(xrayResults []services.ScanResponse, dependencyTrees } defer func() { cleanup := scanner.scannerDirCleanupFunc - if cleanup != nil { - err = errors.Join(err, cleanup()) - } + err = errors.Join(err, cleanup()) }() applicabilityScanResults, err := getApplicabilityScanResults( xrayResults, dependencyTrees, scannedTechnologies, scanner)