Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Aug 14, 2024
1 parent 714f587 commit 5d4c724
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion substrate/client/db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1709,7 +1709,6 @@ impl<Block: BlockT> Backend<Block> {
);
}
} else if operation.create_gap &&
number > best_num + One::one() &&
number > One::one() && self.blockchain.header(parent_hash)?.is_none()
{
let gap = (best_num + One::one(), number - One::one());
Expand Down

0 comments on commit 5d4c724

Please sign in to comment.