message: chore: remove unnecessary judgment
diff: @@ -26,23 +26,14 @@ impl PrefilledVerifier {
  // Check the prefilled_transactions appears to have included the cellbase
  if prefilled_transactions.is_empty() {
  return StatusCode::CompactBlockHasNotPrefilledCellbase.into();
  - }
  + } else {
  + // Check first prefilled index is zero
  let index: usize = prefilled_transactions.get(0).unwrap().index().unpack();
  if index != 0 {
  return StatusCode::CompactBlockHasNotPrefilledCellbase.into();
  }
  - // Check indices order of prefilled transactions
  - for i in 0..(prefilled_transactions.len() - 1) {
  - let idx0: usize = prefilled_transactions.get(i).unwrap().index().unpack();
  - let idx1: usize = prefilled_transactions.get(i + 1).unwrap().index().unpack();
  - if idx0 >= idx1 {
  - return StatusCode::CompactBlockHasOutOfOrderPrefilledTransactions.into();
  - }
  - }
  -
  // Check highest prefilled index is less than length of block transactions
  - if !prefilled_transactions.is_empty() {
  let index: usize = prefilled_transactions
  .get(prefilled_transactions.len() - 1)
  .unwrap()
  @@ -53,6 +44,15 @@ impl PrefilledVerifier {
  }
  }
  + // Check indices order of prefilled transactions
  + for i in 0..(prefilled_transactions.len() - 1) {
  + let idx0: usize = prefilled_transactions.get(i).unwrap().index().unpack();
  + let idx1: usize = prefilled_transactions.get(i + 1).unwrap().index().unpack();
  + if idx0 >= idx1 {
  + return StatusCode::CompactBlockHasOutOfOrderPrefilledTransactions.into();
  + }
  + }
  +
  Status::ok()
  }
  }
  