From caefb91d69598ce688e74c9f0acfe754b409ecf2 Mon Sep 17 00:00:00 2001 From: miryamfoiferCX Date: Tue, 17 Sep 2024 11:40:34 +0300 Subject: [PATCH] fix for linter - 4 --- internal/services/asca.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/services/asca.go b/internal/services/asca.go index 0e6dc226d..6fd832614 100644 --- a/internal/services/asca.go +++ b/internal/services/asca.go @@ -86,12 +86,12 @@ func executeScan(ascaWrapper grpcs.AscaWrapper, filePath string) (*grpcs.ScanRes return ascaWrapper.Scan(fileName, sourceCode) } -func manageASCAInstallation(ascaParams ASCAScanParams, ASCAWrappers ASCAWrappersParam) error { +func manageASCAInstallation(ascaParams ASCAScanParams, ascaWrappers ASCAWrappersParam) error { ASCAInstalled, _ := osinstaller.FileExists(ascaconfig.Params.ExecutableFilePath()) if !ASCAInstalled || ascaParams.ASCAUpdateVersion { - if err := checkLicense(ascaParams.IsDefaultAgent, ASCAWrappers); err != nil { - _ = ASCAWrappers.ASCAWrapper.ShutDown() + if err := checkLicense(ascaParams.IsDefaultAgent, ascaWrappers); err != nil { + _ = ascaWrappers.ASCAWrapper.ShutDown() return err } newInstallation, err := osinstaller.InstallOrUpgrade(&ascaconfig.Params) @@ -99,7 +99,7 @@ func manageASCAInstallation(ascaParams ASCAScanParams, ASCAWrappers ASCAWrappers return err } if newInstallation { - _ = ASCAWrappers.ASCAWrapper.ShutDown() + _ = ascaWrappers.ASCAWrapper.ShutDown() } } return nil