Skip to content

Commit

Permalink
nit: remove unnecessary ? and returns in chain.rs (#10340)
Browse files Browse the repository at this point in the history
  • Loading branch information
akhi3030 authored Dec 15, 2023
1 parent 52e015c commit b8fc11a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/chain/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3467,7 +3467,7 @@ impl Chain {
) -> Result<(), Error> {
let mut chain_store_update = self.mut_store().store_update();
chain_store_update.gc_col_state_parts(sync_hash, shard_id, num_parts)?;
Ok(chain_store_update.commit()?)
chain_store_update.commit()
}

pub fn catchup_blocks_step(
Expand Down Expand Up @@ -3580,7 +3580,7 @@ impl Chain {
}
};

return Ok(());
Ok(())
}

/// For given pair of block headers and shard id, return information about
Expand Down

0 comments on commit b8fc11a

Please sign in to comment.