Skip to content

Commit d347d68

Browse files
authored
Remove unnecessary map_error (#2239)
This was discovered during a debugging session, and it only served to mask the underlying error, which was not great.
1 parent 6a23c23 commit d347d68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

polkadot/xcm/xcm-builder/src/routing.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ impl<Inner: SendXcm> SendXcm for WithUniqueTopic<Inner> {
4949
message.0.push(SetTopic(unique_id));
5050
unique_id
5151
};
52-
let (ticket, assets) = Inner::validate(destination, &mut Some(message))
53-
.map_err(|_| SendError::NotApplicable)?;
52+
let (ticket, assets) = Inner::validate(destination, &mut Some(message))?;
5453
Ok(((ticket, unique_id), assets))
5554
}
5655

0 commit comments

Comments
 (0)