clippy: Fix question_mark warning (#32051)

This commit is contained in:
Oluwatobi Sofela 2024-04-11 22:48:43 +01:00 committed by GitHub
parent 9db9dddb88
commit 62a25fdcc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,9 +91,7 @@ impl AudioBufferSourceNode {
};
if let Some(ref buffer) = options.buffer {
if let Some(ref buffer) = buffer {
if let Err(err) = node.SetBuffer(Some(&**buffer)) {
return Err(err);
}
node.SetBuffer(Some(&**buffer))?
}
}
Ok(node)