Skip to content

Commit

Permalink
Remove unnecessary map_error (paritytech#2239)
Browse files Browse the repository at this point in the history
This was discovered during a debugging session, and it only served to
mask the underlying error, which was not great.
  • Loading branch information
KiChjang authored Nov 9, 2023
1 parent 6a23c23 commit d347d68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions polkadot/xcm/xcm-builder/src/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ impl<Inner: SendXcm> SendXcm for WithUniqueTopic<Inner> {
message.0.push(SetTopic(unique_id));
unique_id
};
let (ticket, assets) = Inner::validate(destination, &mut Some(message))
.map_err(|_| SendError::NotApplicable)?;
let (ticket, assets) = Inner::validate(destination, &mut Some(message))?;
Ok(((ticket, unique_id), assets))
}

Expand Down

0 comments on commit d347d68

Please sign in to comment.