Review comments

This commit is contained in:
jpirnay
2026-04-14 19:05:42 +02:00
parent f9f856f961
commit f2207cbb11
4 changed files with 14 additions and 5 deletions
+9 -2
View File
@@ -111,8 +111,15 @@ class BookmarkStore {
}
}
ok = ok && f.close();
if (!ok) {
bool closeOk = false;
if (ok) {
closeOk = f.close();
if (!closeOk) {
LOG_ERR("BKM", "Failed to close bookmarks file");
return;
}
} else {
f.close();
LOG_ERR("BKM", "Failed while writing bookmarks");
return;
}