cosmetics: Address some cppcheck complains

This commit is contained in:
Felipe Zimmerle
2020-08-06 19:02:00 -03:00
parent 51d06d7a8e
commit ae3ad5eaa7
5 changed files with 7 additions and 7 deletions

View File

@@ -141,7 +141,7 @@ bool VerifyCC::evaluate(Transaction *t, RuleWithActions *rule,
int is_cc = luhnVerify(match.c_str(), match.size());
if (is_cc) {
if (t) {
if (rule && t && rule->hasCaptureAction()) {
if (rule && rule->hasCaptureAction()) {
t->m_collections.m_tx_collection->storeOrUpdateFirst(
"0", std::string(match));
ms_dbg_a(t, 7, "Added VerifyCC match TX.0: " + \