//whenever the expected time period is reached invalidate the last known accuracy
// so that we don't just receive better and better accuracy and eventually risk receiving
// only minimal locations
if (location.hasAccuracy()) {
if (!location.accuracy.isNaN() &&
location.accuracy != 0.0f &&
!location.accuracy.isFinite() &&
!location.accuracy.isInfinite()) {
overrideLocation = true
}
}
Conditions contradict each other
!location.accuracy.isFinite() && !location.accuracy.isInfinite()
/**
Returns true if the argument is a finite floating-point value; returns false otherwise (for NaN and infinity arguments).
*/
@kotlin.internal.InlineOnly
public actual inline fun Float.isFinite(): Boolean = !isInfinite() && !isNaN()
Conditions contradict each other !location.accuracy.isFinite() && !location.accuracy.isInfinite()
/**
true
if the argument is a finite floating-point value; returnsfalse
otherwise (forNaN
and infinity arguments). */ @kotlin.internal.InlineOnly public actual inline fun Float.isFinite(): Boolean = !isInfinite() && !isNaN()condition will always be false