Skip to content
Snippets Groups Projects
Unverified Commit d347d688 authored by Keith Yeung's avatar Keith Yeung Committed by GitHub
Browse files

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.
parent 6a23c231
No related merge requests found
Pipeline #411386 failed with stages
in 49 minutes and 14 seconds
......@@ -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))
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment