Fix some typos (#4565)

This commit is contained in:
zhiqiangxu
2023-08-14 00:29:43 +00:00
parent 1fcada8a32
commit f1ac12f23a
9 changed files with 13 additions and 16 deletions

View File

@@ -466,13 +466,10 @@ where
// for lower slots to account for skip slots.
.find(|(_, slot)| *slot <= ancestor_slot)
.map(|(root, _)| root)),
Ordering::Less => Ok(Some(block_root)),
Ordering::Equal =>
// Root is older than queried slot, thus a skip slot. Return most recent root prior
// to slot.
{
Ok(Some(block_root))
}
Ordering::Less => Ok(Some(block_root)),
Ordering::Equal => Ok(Some(block_root)),
}
}