Skip to content

Commit

Permalink
Add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Mar 19, 2024
1 parent d8ca6a4 commit 88a9a78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/scheduling/syncscheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ class FolderPriorityQueue
while (!_queue.empty() && !out) {
// could be a nullptr by now
out = _queue.top().folder;
_scheduledFolders.erase(_queue.top().rawFolder);
[[maybe_unused]] auto removed = _scheduledFolders.erase(_queue.top().rawFolder);
Q_ASSERT(removed = 1);
_queue.pop();
}
return out;
Expand Down

0 comments on commit 88a9a78

Please sign in to comment.