dash BleIO: s/let/also
This commit is contained in:
parent
7976df596e
commit
c2627176cf
|
@ -84,9 +84,8 @@ class BleIO(
|
|||
fun flushIncomingQueues() {
|
||||
for (char in CharacteristicType.values()) {
|
||||
do {
|
||||
val found = incomingPackets[char]?.poll()
|
||||
found?.let {
|
||||
aapsLogger.warn(LTag.PUMPBTCOMM, "BleIO: ${char.name} queue not empty, flushing: {${found.toHex()}")
|
||||
val found = incomingPackets[char]?.poll()?.also {
|
||||
aapsLogger.warn(LTag.PUMPBTCOMM, "BleIO: ${char.name} queue not empty, flushing: {${it.toHex()}")
|
||||
}
|
||||
} while (found != null)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue