diff options
Diffstat (limited to 'components/script/body.rs')
-rw-r--r-- | components/script/body.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/body.rs b/components/script/body.rs index 36c6d3cc8b4..7971817747b 100644 --- a/components/script/body.rs +++ b/components/script/body.rs @@ -751,10 +751,7 @@ fn consume_body_with_promise<T: BodyMixin + DomObject>( // Step 2. let stream = match object.body() { Some(stream) => stream, - None => { - let stream = ReadableStream::new_from_bytes(&global, Vec::with_capacity(0)); - stream - }, + None => ReadableStream::new_from_bytes(&global, Vec::with_capacity(0)), }; // Step 3. |