Skip to content

Commit dc5d680

Browse files
committed
Fix deprecated check error
1 parent 2eb1c49 commit dc5d680

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

app/src/main/java/io/nekohasekai/sfa/compose/screen/dashboard/DashboardViewModel.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class DashboardViewModel :
200200

201201
private fun checkDeprecatedNotes() {
202202
viewModelScope.launch(Dispatchers.IO) {
203-
try {
203+
runCatching {
204204
// Check if deprecated warnings are disabled
205205
if (Settings.disableDeprecatedWarnings) {
206206
return@launch
@@ -227,8 +227,6 @@ class DashboardViewModel :
227227
}
228228
}
229229
}
230-
} catch (e: Exception) {
231-
sendError(e)
232230
}
233231
}
234232
}

0 commit comments

Comments
 (0)