mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1466101 - Fix a debug-only variable use in InputStreamLengthHelper, r=mayhemer
This commit is contained in:
parent
2c2e0b614f
commit
1590c0bec2
@ -157,8 +157,10 @@ InputStreamLengthHelper::GetAsyncLength(nsIInputStream* aStream,
|
||||
if (!streamLength && !asyncStreamLength) {
|
||||
// We cannot calculate the length of an async stream. We must fix the
|
||||
// caller if this happens.
|
||||
#ifdef DEBUG
|
||||
nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(aStream);
|
||||
MOZ_DIAGNOSTIC_ASSERT(!asyncStream);
|
||||
#endif
|
||||
|
||||
bool nonBlocking = false;
|
||||
if (NS_SUCCEEDED(aStream->IsNonBlocking(&nonBlocking)) && !nonBlocking) {
|
||||
|
Loading…
Reference in New Issue
Block a user