[XCM - UnpaidRemoteExporter] Remove unreachable code (#7088)

* Remove unreachable code

* Fix warning
This commit is contained in:
Serban Iorga
2023-04-17 16:39:19 +03:00
committed by GitHub
parent 926f9a6381
commit 23763d0ec9
@@ -160,10 +160,7 @@ impl<Bridges: ExporterFor, Router: SendXcm, UniversalLocation: Get<InteriorMulti
// export for free. Common-good chains will typically be afforded this.
let message =
Xcm(vec![ExportMessage { network: remote_network, destination: remote_location, xcm }]);
let (v, mut cost) = validate_send::<Router>(bridge, message)?;
if let Some(payment) = maybe_payment {
cost.push(payment);
}
let (v, cost) = validate_send::<Router>(bridge, message)?;
Ok((v, cost))
}