Skip to content

Commit

Permalink
fix skipped parent
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier committed Feb 6, 2025
1 parent 871eb34 commit f1c7e42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/cli/src/db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ impl KailuaDB {
return Ok(true);
}

let mut parent = self.get_local_proposal(&opponent.parent).unwrap();
// Skipped parents imply skipped children
let Some(mut parent) = self.get_local_proposal(&opponent.parent) else {
return Ok(false);
};
// Append child to parent tournament children list
if !parent.append_child(opponent.index) {
warn!(
Expand Down

0 comments on commit f1c7e42

Please sign in to comment.