files: fix detekt findings
- Commit
320937537e877b022d8e36a1850fc0971eaf8ec3- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 15:16 UTC (18 days ago)
- Parents
0cf0eb1
Fixes every error-severity detekt finding in files (inventory clusters C3/C4): named constants for magic numbers, extracted functions/composables for long/complex methods, wrapped long lines, removed unused parameters, and narrowed/logged exception handling. No detekt config, baseline or suppression changes; behaviour preserved. Verified: ./check files and :files:testDevUnitTest green.
Diff
files/src/main/java/com/vayunmathur/files/platform/FilesTrashModel.kt
diff --git a/files/src/main/java/com/vayunmathur/files/platform/FilesTrashModel.kt b/files/src/main/java/com/vayunmathur/files/platform/FilesTrashModel.ktindex e05e9928f9..0a1ed6700f 100644--- a/files/src/main/java/com/vayunmathur/files/platform/FilesTrashModel.kt+++ b/files/src/main/java/com/vayunmathur/files/platform/FilesTrashModel.kt@@ -32,7 +32,8 @@ abstract class FilesTrashModel(application: Application) : if (trashable.isNotEmpty()) { selectedPathsState.value = emptySet() loadDirectory()- pendingTrashMessage = ctx.resources.getQuantityString(R.plurals.moved_to_trash, trashable.size, trashable.size)+ pendingTrashMessage = ctx.resources+ .getQuantityString(R.plurals.moved_to_trash, trashable.size, trashable.size) trashConsentRequestsFlow.emit( trashPendingIntent(ctx, trashable.values.toList(), true) )