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:
Josh Matthews 2025-04-21 04:18:08 -04:00 committed by GitHub
parent 2a723a528c
commit 233c9aaea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(())
}