mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 06:48:27 +00:00
Remove expect
This commit is contained in:
@@ -1338,7 +1338,7 @@ impl ProtoArray {
|
||||
(*weight, child.root, *payload_status_tiebreaker)
|
||||
})
|
||||
.map(|(child, _, _)| child)
|
||||
.expect("children is non-empty");
|
||||
.ok_or(Error::NoViableChildren)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user