Skip to content

Commit

Permalink
fix for linter - 4
Browse files Browse the repository at this point in the history
  • Loading branch information
miryamfoiferCX committed Sep 17, 2024
1 parent 717d324 commit caefb91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/services/asca.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,20 @@ 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)
if err != nil {
return err
}
if newInstallation {
_ = ASCAWrappers.ASCAWrapper.ShutDown()
_ = ascaWrappers.ASCAWrapper.ShutDown()
}
}
return nil
Expand Down

0 comments on commit caefb91

Please sign in to comment.