Skip to content

Commit

Permalink
Use else if
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Jun 21, 2024
1 parent c309917 commit 073f62b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions client/internal/routemanager/dynamic/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,14 @@ func (r *Route) startResolver(ctx context.Context) {
if interval > failureInterval {
ticker.Reset(failureInterval)
}
} else {
} else if interval > failureInterval {
// Reset to the original interval if the update succeeds
if interval > failureInterval {
ticker.Reset(interval)
}
ticker.Reset(interval)
}
}
}
}
}

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / ios_build

syntax error: non-declaration statement outside function body

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

syntax error: non-declaration statement outside function body (typecheck)

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

expected declaration, found '}' (typecheck)

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

syntax error: non-declaration statement outside function body) (typecheck)

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / test_client_on_docker

syntax error: non-declaration statement outside function body

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

syntax error: non-declaration statement outside function body (typecheck)

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

expected declaration, found '}' (typecheck)

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

syntax error: non-declaration statement outside function body) (typecheck)

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / android_build

syntax error: non-declaration statement outside function body

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / test (sqlite)

syntax error: non-declaration statement outside function body

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / test (386, sqlite)

syntax error: non-declaration statement outside function body

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / test (amd64, sqlite)

syntax error: non-declaration statement outside function body

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / test (amd64, postgres)

syntax error: non-declaration statement outside function body

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / test (386, postgres)

syntax error: non-declaration statement outside function body

Check failure on line 190 in client/internal/routemanager/dynamic/route.go

View workflow job for this annotation

GitHub Actions / test

syntax error: non-declaration statement outside function body

func (r *Route) update(ctx context.Context) error {
if resolved, err := r.resolveDomains(); err != nil {
Expand Down

0 comments on commit 073f62b

Please sign in to comment.