From 3d8b91db9130dce5f9f863d7b08700d4dfc898e0 Mon Sep 17 00:00:00 2001
From: dharjeezy <dharjeezy@gmail.com>
Date: Mon, 27 Jan 2025 11:52:11 +0100
Subject: [PATCH] nit

---
 substrate/client/service/src/lib.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/substrate/client/service/src/lib.rs b/substrate/client/service/src/lib.rs
index e631646a7b8..f61af1f3b54 100644
--- a/substrate/client/service/src/lib.rs
+++ b/substrate/client/service/src/lib.rs
@@ -562,7 +562,7 @@ where
 	fn transaction(&self, hash: &H) -> Option<Arc<B::Extrinsic>> {
 		self.pool.ready_transaction(hash).and_then(
 			// Only propagable transactions should be resolved for network service.
-			|tx| if tx.is_propagable() { Some(Arc::new((**tx.data()).clone())) } else { None },
+			|tx| tx.is_propagable().then(|| { tx.data().clone() }),
 		)
 	}
 }
-- 
GitLab