LibWeb/WebAudio: Remove copy-pasted comments in DynamicsCompressorNode

This commit is contained in:
Pavel Shliak 2024-12-17 01:20:21 +04:00 committed by Alexander Kalenik
parent 9232dcbde5
commit a95303de02
Notes: github-actions[bot] 2024-12-18 09:20:45 +00:00

View file

@ -81,11 +81,9 @@ WebIDL::ExceptionOr<void> DynamicsCompressorNode::set_channel_count_mode(Binding
WebIDL::ExceptionOr<void> DynamicsCompressorNode::set_channel_count(WebIDL::UnsignedLong channel_count)
{
if (channel_count > 2) {
// Return a NotSupportedError if 'max' is used
return WebIDL::NotSupportedError::create(realm(), "DynamicsCompressorNode does not support channel count greater than 2"_string);
}
// If the mode is valid, call the base class implementation
return AudioNode::set_channel_count(channel_count);
}