From f6cc1aa0347ff4ab1ac854e5b72e0507a55da0f1 Mon Sep 17 00:00:00 2001 From: Jesse Pinho Date: Thu, 9 May 2024 15:24:19 -0700 Subject: [PATCH] Simplify --- packages/wasm/crate/src/storage.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/wasm/crate/src/storage.rs b/packages/wasm/crate/src/storage.rs index 1a628fc1a4..0959e4eea7 100644 --- a/packages/wasm/crate/src/storage.rs +++ b/packages/wasm/crate/src/storage.rs @@ -363,12 +363,9 @@ impl IndexedDBStorage { &self, auction_id: AuctionId, ) -> WasmResult { - let tx = self - .db - .transaction_on_one(&self.constants.tables.auctions)?; - let store = tx.object_store(&self.constants.tables.auctions)?; - - store + self.db + .transaction_on_one(&self.constants.tables.auctions)? + .object_store(&self.constants.tables.auctions)? .get::(&byte_array_to_base64(&auction_id.to_proto().inner).into())? .await? .map(|auction| {