mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: FirmwareReleaseDao to return non-nullable lists (#1991)
This commit is contained in:
parent
7f4f52b6c9
commit
88d74642ae
2 changed files with 3 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ class FirmwareReleaseLocalDataSource @Inject constructor(
|
|||
suspend fun getLatestRelease(releaseType: FirmwareReleaseType): FirmwareReleaseEntity? =
|
||||
withContext(Dispatchers.IO) {
|
||||
val releases = firmwareReleaseDao.getReleasesByType(releaseType)
|
||||
if (releases.isNullOrEmpty()) {
|
||||
if (releases.isEmpty()) {
|
||||
return@withContext null
|
||||
} else {
|
||||
val latestRelease =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue