From 24072289729211dc63adbeb3dd23d39128b73565 Mon Sep 17 00:00:00 2001
From: Adrian Catangiu <adrian@parity.io>
Date: Wed, 22 Mar 2023 16:47:04 +0200
Subject: [PATCH] minor cosmetic updates (#1985)

---
 .../src/messages_xcm_extension.rs             | 37 ++++++++++---------
 1 file changed, 19 insertions(+), 18 deletions(-)

diff --git a/bridges/bin/runtime-common/src/messages_xcm_extension.rs b/bridges/bin/runtime-common/src/messages_xcm_extension.rs
index 7163d8a5357..42ac67a0f26 100644
--- a/bridges/bin/runtime-common/src/messages_xcm_extension.rs
+++ b/bridges/bin/runtime-common/src/messages_xcm_extension.rs
@@ -159,23 +159,24 @@ impl<HaulerOrigin, H: XcmBlobHauler<MessageSenderOrigin = HaulerOrigin>> HaulBlo
 {
 	fn haul_blob(blob: sp_std::prelude::Vec<u8>) -> Result<(), HaulBlobError> {
 		let lane = H::xcm_lane();
-		let result = H::MessageSender::send_message(H::message_sender_origin(), lane, blob);
-		let result = result
-			.map(|artifacts| (lane, artifacts.nonce).using_encoded(sp_io::hashing::blake2_256));
-		match &result {
-			Ok(result) => log::info!(
-				target: crate::LOG_TARGET_BRIDGE_DISPATCH,
-				"haul_blob result - ok: {:?} on lane: {:?}",
-				result,
-				lane
-			),
-			Err(error) => log::error!(
-				target: crate::LOG_TARGET_BRIDGE_DISPATCH,
-				"haul_blob result - error: {:?} on lane: {:?}",
-				error,
-				lane
-			),
-		};
-		result.map(|_| ()).map_err(|_| HaulBlobError::Transport("MessageSenderError"))
+		H::MessageSender::send_message(H::message_sender_origin(), lane, blob)
+			.map(|artifacts| (lane, artifacts.nonce).using_encoded(sp_io::hashing::blake2_256))
+			.map(|result| {
+				log::info!(
+					target: crate::LOG_TARGET_BRIDGE_DISPATCH,
+					"haul_blob result - ok: {:?} on lane: {:?}",
+					result,
+					lane
+				)
+			})
+			.map_err(|error| {
+				log::error!(
+					target: crate::LOG_TARGET_BRIDGE_DISPATCH,
+					"haul_blob result - error: {:?} on lane: {:?}",
+					error,
+					lane
+				);
+				HaulBlobError::Transport("MessageSenderError")
+			})
 	}
 }
-- 
GitLab