clippy: Fix all errors in components/script (#31911)

* clippy: Fix errors in components/script/dom

* clippy: fixed remaining errors in components/script
This commit is contained in:
Azhar Ismagulova 2024-03-28 09:03:18 +00:00 committed by GitHub
parent eccb60e548
commit f183170786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 57 additions and 57 deletions

View file

@ -79,8 +79,8 @@ impl OfflineAudioContext {
sample_rate: f32,
) -> Fallible<DomRoot<OfflineAudioContext>> {
if channel_count > MAX_CHANNEL_COUNT ||
channel_count <= 0 ||
length <= 0 ||
channel_count == 0 ||
length == 0 ||
sample_rate < MIN_SAMPLE_RATE ||
sample_rate > MAX_SAMPLE_RATE
{