Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1439 from weaveworks/loop-break
Browse files Browse the repository at this point in the history
Fix ineffective break statement
  • Loading branch information
squaremo authored Oct 9, 2018
2 parents 6c8cd0d + 2b9ef96 commit 31869d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integrations/helm/chartsync/chartsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ func New(logger log.Logger, polling Polling, clients Clients, release *release.R
}
}

// Run creates a syncing loop monitoring repo chart changes. It is
// assumed that the *git.Repo given to the config is ready to use
// before this is invoked.
// Run creates a syncing loop monitoring repo chart changes. It is
// assumed that the *git.Repo given to the config is ready to use
// before this is invoked.
//
// The behaviour if the git mirror becomes unavailable while it's
// running is not defined (this could be tightened up).
Expand Down Expand Up @@ -174,7 +174,7 @@ func (chs *ChartChangeSync) Run(stopCh <-chan struct{}, errc chan error, wg *syn

case <-stopCh:
chs.logger.Log("stopping", "true")
break
return
}
}
}()
Expand Down

0 comments on commit 31869d3

Please sign in to comment.