Skip to content

Commit

Permalink
fix: apply lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajil1213 committed Jul 16, 2024
1 parent d2e99c4 commit 86d31b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion crates/db/src/chain_state/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl ChainstateStore for ChainStateDb {
idx: u64,
batch: &alpen_vertex_state::state_op::WriteBatch,
) -> DbResult<()> {
if let Some(_) = self.db.get::<WriteBatchSchema>(&idx)? {
if (self.db.get::<WriteBatchSchema>(&idx)?).is_some() {
return Err(DbError::OverwriteStateUpdate(idx));
}

Expand Down
3 changes: 0 additions & 3 deletions crates/db/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
use l2::schemas::{L2BlockHeightSchema, L2BlockSchema, L2BlockStatusSchema};
use rockbound::{schema::ColumnFamilyName, Schema};
use sequencer::schemas::{
SeqBIdRevTxnIdxSchema, SeqBlobIdSchema, SeqBlobSchema, SeqL1TxIdSchema, SeqL1TxnSchema,
};

use crate::chain_state::schemas::{ChainStateSchema, WriteBatchSchema};
use crate::client_state::schemas::{ClientStateSchema, ClientUpdateOutputSchema};
Expand Down

0 comments on commit 86d31b8

Please sign in to comment.