mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Remove unnecessary map_err. (#36625)
#36361 changed the return type of structuredclone::read, so this code is just stomping on an error value that is potentially more useful since #36308 was merged. Testing: Existing WPT test coverage. Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
2a723a528c
commit
233c9aaea6
1 changed files with 1 additions and 1 deletions
|
@ -3352,7 +3352,7 @@ impl GlobalScope {
|
|||
|
||||
let data = structuredclone::write(cx, value, Some(guard))?;
|
||||
|
||||
structuredclone::read(self, data, retval).map_err(|_| Error::DataClone(None))?;
|
||||
structuredclone::read(self, data, retval)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue