Skip to content

Commit

Permalink
update: directly return match_found variable
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Terzolo <andrea.terzolo@polito.it>
Signed-off-by: Lorenzo Susini <49318629+loresuso@users.noreply.github.com>
  • Loading branch information
2 people authored and poiana committed Aug 9, 2023
1 parent 2660582 commit 6e50d2a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions userspace/engine/evttype_index_ruleset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6e50d2a

Please sign in to comment.