Merge pull request #1614 from davotoula/cleaner-code-pt2

log boolean returned by .delete()
This commit is contained in:
Vitor Pamplona
2025-12-16 11:15:52 -05:00
committed by GitHub
@@ -249,7 +249,9 @@ object LocalPreferences {
val prefsDir = File(prefsDirPath)
prefsDir.list()?.forEach {
if (it.contains(npub)) {
File(prefsDir, it).delete()
if (!File(prefsDir, it).delete()) {
Log.w("LocalPreferences", "Failed to delete preference file: $it")
}
}
}
}