Skip to content

Commit ab90a9d

Browse files
authored
Merge pull request #5701 from stacks-network/fix/clippy-ci-unnecessary-unwrap
Fix clippy::unnecessary_unwrap throughout stacks core
2 parents feb450f + 23ecad0 commit ab90a9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stackslib/src/burnchains/bitcoin/indexer.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,8 +1100,10 @@ impl BurnchainIndexer for BitcoinIndexer {
11001100
start_height: u64,
11011101
end_height: Option<u64>,
11021102
) -> Result<u64, burnchain_error> {
1103-
if end_height.is_some() && end_height <= Some(start_height) {
1104-
return Ok(end_height.unwrap());
1103+
if let Some(end_height) = end_height {
1104+
if end_height <= start_height {
1105+
return Ok(end_height);
1106+
}
11051107
}
11061108

11071109
let new_height = self

0 commit comments

Comments
 (0)