Skip to content

Commit

Permalink
refactor(lint): Fixing feedback from linter
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 8, 2021
1 parent 16f5701 commit 7cbb621
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/notifier/releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (a app) getNewHelmReleases(ctx context.Context) ([]model.Release, uint64, e
}

repoName := repositories[0].Name
repoWithNames := make(map[string]model.Repository, 0)
repoWithNames := make(map[string]model.Repository)

for _, repo := range repositories {
count++
Expand All @@ -89,7 +89,7 @@ func (a app) getNewHelmReleases(ctx context.Context) ([]model.Release, uint64, e
newReleases = append(newReleases, a.getFetchHelmSources(repoWithNames)...)

repoName = repo.Name
repoWithNames = make(map[string]model.Repository, 0)
repoWithNames = make(map[string]model.Repository)
}

repoWithNames[repo.Part] = repo
Expand All @@ -113,7 +113,7 @@ func (a app) getFetchHelmSources(repos map[string]model.Repository) []model.Rele

var url string

charts := make(map[string][]string, 0)
charts := make(map[string][]string)
for _, repo := range repos {
if len(url) == 0 {
url = repo.Name
Expand Down

0 comments on commit 7cbb621

Please sign in to comment.