mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 1003921: Use NS_WARN_IF_FALSE instead of NS_WARN_IF to fix warning in mozStorageAsyncStatementExecution.cpp. r=mak
This commit is contained in:
parent
18421a4364
commit
ceb0c0ab11
@ -19,6 +19,7 @@
|
||||
#include "mozStorageStatementData.h"
|
||||
#include "mozStorageAsyncStatementExecution.h"
|
||||
|
||||
#include "mozilla/DebugOnly.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
namespace mozilla {
|
||||
@ -453,7 +454,9 @@ AsyncExecuteStatements::notifyComplete()
|
||||
}
|
||||
}
|
||||
else {
|
||||
NS_WARN_IF(NS_FAILED(mConnection->rollbackTransactionInternal(mNativeConnection)));
|
||||
DebugOnly<nsresult> rv =
|
||||
mConnection->rollbackTransactionInternal(mNativeConnection);
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Transaction failed to rollback");
|
||||
}
|
||||
mHasTransaction = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user