Skip to content

Commit

Permalink
Adjustments to fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminguttmann-avtq committed Sep 11, 2023
1 parent 0b97750 commit ca54f5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions collectors/service_discovery_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ func (labelGroupValue *LabelGroupValue) addTarget(ip string) {

func (labelGroupValue *LabelGroupValue) exportReleasesAsString() string {
var releases []string
for _, release := range labelGroupValue.DeploymentReleases {
releases = append(releases, release)
}
releases = append(releases, labelGroupValue.DeploymentReleases...)
return strings.Join(releases, ",")
}

Expand Down
3 changes: 3 additions & 0 deletions deployments/deployments_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ func (f *Fetcher) fetchDeploymentReleases(deployment director.Deployment) ([]Rel

for _, release := range releases {
jobNames, err := f.fetchReleaseJobs(release, deployment.Name())
if err != nil {
return deploymentReleases, err
}
packageNames, err := f.fetchReleasePackages(release, deployment.Name())
if err != nil {
return deploymentReleases, err
Expand Down

0 comments on commit ca54f5d

Please sign in to comment.