minor simplify

This commit is contained in:
GeekExplorer
2026-04-13 22:09:46 +08:00
parent 02a95fdc66
commit 9e8507ef41
6 changed files with 14 additions and 27 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class BlockManager:
block.reset()
self.free_block_ids.remove(block_id)
self.used_block_ids.add(block_id)
return self.blocks[block_id]
return block
def _deallocate_block(self, block_id: int) -> Block:
assert self.blocks[block_id].ref_count == 0