mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
Remove expect
This commit is contained in:
@@ -60,6 +60,7 @@ pub enum Error {
|
||||
BrokenBlock {
|
||||
block_root: Hash256,
|
||||
},
|
||||
NoViableChildren,
|
||||
}
|
||||
|
||||
impl From<ArithError> for Error {
|
||||
|
||||
@@ -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