diff --git a/dom/media/webaudio/WaveShaperNode.cpp b/dom/media/webaudio/WaveShaperNode.cpp index df029832af1c..14379754b459 100644 --- a/dom/media/webaudio/WaveShaperNode.cpp +++ b/dom/media/webaudio/WaveShaperNode.cpp @@ -212,10 +212,9 @@ class WaveShaperNodeEngine final : public AudioNodeEngine { 0.0) { *aOutput = aInput; return; - } else { - nullInput = true; - channelCount = 1; } + nullInput = true; + channelCount = 1; } aOutput->AllocateChannels(channelCount);