Bug 1444971 - fix diagnostic assert condition in ReadStream; r=baku

Using MOZ_DIAGNOSTIC_ASSERT_ENABLED here is a little clearer than
RELEASE_OR_BETA and makes disabling diagnostic assertions globally
easier.
This commit is contained in:
Nathan Froyd 2018-03-13 09:47:07 -04:00
parent 89b8270203
commit b9b5a1379d

View File

@ -611,7 +611,7 @@ ReadStream::Create(const CacheReadStream& aReadStream)
nsCOMPtr<nsIInputStream> stream = DeserializeIPCStream(aReadStream.stream());
// Currently we expect all cache read streams to be blocking file streams.
#if !defined(RELEASE_OR_BETA)
#if defined(MOZ_DIAGNOSTIC_ASSERT_ENABLED)
if (stream) {
nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(stream);
MOZ_DIAGNOSTIC_ASSERT(!asyncStream);