Bug 1466101 - Fix a debug-only variable use in InputStreamLengthHelper, r=mayhemer

This commit is contained in:
Andrea Marchesini 2018-06-05 23:19:00 +02:00
parent 2c2e0b614f
commit 1590c0bec2

View File

@ -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) {