Remove unnecessary Option.

This commit is contained in:
Josh Matthews 2019-12-19 18:10:42 -05:00
parent 6aacc9001b
commit f02e516f32
6 changed files with 10 additions and 18 deletions

View file

@ -83,9 +83,7 @@ impl OfflineAudioContext {
{
return Err(Error::NotSupported);
}
let pipeline_id = window
.pipeline_id()
.expect("Cannot create audio context outside of a pipeline");
let pipeline_id = window.pipeline_id();
let context =
OfflineAudioContext::new_inherited(channel_count, length, sample_rate, pipeline_id);
Ok(reflect_dom_object(