diff options
author | Josh Matthews <josh@joshmatthews.net> | 2019-12-19 18:10:42 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2020-02-24 15:58:58 -0500 |
commit | f02e516f323cf63d4791e8d88f74fe1de9521e8f (patch) | |
tree | 1fbd8fdc36815180c452b42f614ea685b764fd8c /components/script/dom/offlineaudiocontext.rs | |
parent | 6aacc9001be072c90bd7e1e554cfda982772cd12 (diff) | |
download | servo-f02e516f323cf63d4791e8d88f74fe1de9521e8f.tar.gz servo-f02e516f323cf63d4791e8d88f74fe1de9521e8f.zip |
Remove unnecessary Option.
Diffstat (limited to 'components/script/dom/offlineaudiocontext.rs')
-rw-r--r-- | components/script/dom/offlineaudiocontext.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/script/dom/offlineaudiocontext.rs b/components/script/dom/offlineaudiocontext.rs index a524595d6ea..7b8d3f52111 100644 --- a/components/script/dom/offlineaudiocontext.rs +++ b/components/script/dom/offlineaudiocontext.rs @@ -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( |