Skip to content

Commit 73d0925

Browse files
committed
docs: document a TODO for fixing the unused value of hasPermission.
1 parent e847168 commit 73d0925

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/org/kabiri/android/usbterminal/viewmodel/MainActivityViewModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ internal class MainActivityViewModel
9292
fun connectIfAlreadyHasPermission() = viewModelScope.launch {
9393
val usbDevice = usbUseCase.usbDevice.firstOrNull() ?: return@launch
9494
usbUseCase.hasPermission(usbDevice)
95+
// TODO : Fix hasPermission return value not being used here.
9596
openDeviceAndPort(usbDevice)
9697
}
9798

0 commit comments

Comments
 (0)