Unwrap unnecessary constant `if(true)` branch
@@ -81,7 +81,6 @@ public class CycledLeScannerForLollipop extends CycledLeScanner {
long millisecondsUntilStart = mNextScanCycleStartTime - SystemClock.elapsedRealtime();
if (millisecondsUntilStart > 0) {
mMainScanCycleActive = false;
- if (true) {
long secsSinceLastDetection = SystemClock.elapsedRealtime() -
DetectionTracker.getInstance().getLastDetectionTime();
// If we have seen a device recently
@@ -126,7 +125,6 @@ public class CycledLeScannerForLollipop extends CycledLeScanner {
}
}
}
- }
LogManager.d(TAG, "Waiting to start full Bluetooth scan for another %s milliseconds",
millisecondsUntilStart);
// Don't actually wait until the next scan time -- only wait up to 1 second. This
