update: directly return match_found variable

Co-authored-by: Andrea Terzolo <andrea.terzolo@polito.it>
Signed-off-by: Lorenzo Susini <49318629+loresuso@users.noreply.github.com>
This commit is contained in:
Lorenzo Susini 2023-08-08 17:32:07 +02:00 committed by poiana
parent 2660582198
commit 6e50d2ad83

View File

@ -169,12 +169,7 @@ bool evttype_index_ruleset::ruleset_filters::run(gen_event *evt, std::vector<fal
}
}
if(match_found)
{
return true;
}
return false;
return match_found;
}
libsinsp::events::set<ppm_sc_code> evttype_index_ruleset::ruleset_filters::sc_codes()