Skip to content

Commit

Permalink
fix: add break statement to fix unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersiddhu committed Dec 9, 2020
1 parent 2458e6a commit 3aecdbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/repository/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type poll struct {
func (p *poll) forRepo() error {
ticker := time.NewTicker(p.pollInterval)
defer ticker.Stop()
OUTER:
for {
select {
case <-ticker.C:
Expand All @@ -41,7 +42,7 @@ func (p *poll) forRepo() error {
"polling finished for repo %s/%s",
r.GetName(), r.GetOwner().GetLogin(),
)
return nil
break OUTER
}
errResp, ok := err.(*gh.ErrorResponse)
if !ok {
Expand Down

0 comments on commit 3aecdbb

Please sign in to comment.