Review comments
This commit is contained in:
+9
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user