Skip to content

Commit 2c346a6

Browse files
committed
Remove unused variable assignment in storage.rs
- Replace unused _cf variable with direct validation check - Add comment explaining the column family existence check - Improves code clarity without changing functionality
1 parent 3637f04 commit 2c346a6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

crates/bitcell-state/src/storage.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ impl StorageManager {
170170
}
171171

172172
let prune_until = latest - keep_last;
173-
let _cf = self.db.cf_handle(CF_BLOCKS)
173+
174+
// Verify blocks column family exists
175+
self.db.cf_handle(CF_BLOCKS)
174176
.ok_or_else(|| "Blocks column family not found".to_string())?;
175177

176178
// This is a simplified version - in production would iterate and delete

0 commit comments

Comments
 (0)