mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
Fix LimitTreeMap::is_exhausted()
This commit is contained in:
parent
66334203b1
commit
d74db4e9d1
1 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,8 @@ impl LimitTreeMap {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn is_exhausted(&self, deck_id: DeckId) -> bool {
|
pub(super) fn is_exhausted(&self, deck_id: DeckId) -> bool {
|
||||||
self.map.get(&deck_id).is_some()
|
self.map.get(&deck_id).is_none()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) fn remaining_node_id(&self, deck_id: DeckId) -> Option<NodeId> {
|
pub(super) fn remaining_node_id(&self, deck_id: DeckId) -> Option<NodeId> {
|
||||||
|
|
Loading…
Reference in a new issue