mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-15 05:09:55 +00:00
Use else if
This commit is contained in:
@@ -180,11 +180,9 @@ func (r *Route) startResolver(ctx context.Context) {
|
|||||||
if interval > failureInterval {
|
if interval > failureInterval {
|
||||||
ticker.Reset(failureInterval)
|
ticker.Reset(failureInterval)
|
||||||
}
|
}
|
||||||
} else {
|
} else if interval > failureInterval {
|
||||||
// Reset to the original interval if the update succeeds
|
// 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