mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-09 17:51:57 -04:00
Use else if
This commit is contained in:
@@ -180,11 +180,9 @@ 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user