Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalb4doc committed Dec 25, 2024
1 parent 7189bb7 commit 01c44c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/commands/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ func reportUsage(command Command, channel chan<- bool) {
}
artifactoryVersion, err := serviceManager.GetVersion()
if err != nil {
log.Debug("Usage reporting. Failed getting the Artifactory", err.Error())
log.Debug("Usage reporting. Failed getting the version of Artifactory", err.Error())
return
}

var wg sync.WaitGroup

// Report the usage to Artifactory's Call Home API.
if version.NewVersion(ArtifactoryVersion).AtLeast(minCallHomeArtifactoryVersion) {
if version.NewVersion(artifactoryVersion).AtLeast(minCallHomeArtifactoryVersion) {
wg.Add(1)
go func() {
defer wg.Done()
Expand All @@ -79,7 +79,7 @@ func reportUsage(command Command, channel chan<- bool) {
}

// Report the usage to the Visibility System.
if version.NewVersion(ArtifactoryVersion).AtLeast(minVisibilitySystemArtifactoryVersion) {
if version.NewVersion(artifactoryVersion).AtLeast(minVisibilitySystemArtifactoryVersion) {
wg.Add(1)
go func() {
defer wg.Done()
Expand Down

0 comments on commit 01c44c3

Please sign in to comment.