Skip to content

Commit 9449713

Browse files
committed
removed unused fields from CommonPackageUpdater
1 parent 53c2d33 commit 9449713

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packageupdaters/commonpackageupdater.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010

1111
"github.com/jfrog/frogbot/v2/utils"
1212
"github.com/jfrog/gofrog/datastructures"
13-
"github.com/jfrog/jfrog-cli-core/v2/utils/config"
1413
"github.com/jfrog/jfrog-cli-security/utils/techutils"
1514
"github.com/jfrog/jfrog-client-go/utils/log"
1615
"golang.org/x/exp/slices"
@@ -52,10 +51,7 @@ func GetCompatiblePackageUpdater(vulnDetails *utils.VulnerabilityDetails, detail
5251
}
5352

5453
// TODO can be deleted if not needed after refactoring all package updaters
55-
type CommonPackageUpdater struct {
56-
serverDetails *config.ServerDetails
57-
depsRepo string
58-
}
54+
type CommonPackageUpdater struct{}
5955

6056
// UpdateDependency updates the impacted package to the fixed version
6157
func (cph *CommonPackageUpdater) UpdateDependency(vulnDetails *utils.VulnerabilityDetails, installationCommand string, extraArgs ...string) (err error) {

0 commit comments

Comments
 (0)