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 72787ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/client/db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ 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()
self.blockchain.header(parent_hash)?.is_none()
{
let gap = (best_num + One::one(), number - One::one());
transaction.set(columns::META, meta_keys::BLOCK_GAP, &gap.encode());
Expand Down

0 comments on commit 72787ef

Please sign in to comment.