engine: Fix ruleFound return value #90

Merged
alexvanin merged 1 commit from fyrchik/policy-engine:refactor-rulefound into master 2024-08-21 07:20:39 +00:00

1 commit

Author SHA1 Message Date
bb77b1cccd [#90] engine: Fix ruleFound return value
All checks were successful
DCO action / DCO (pull_request) Successful in 52s
Tests and linters / Tests (1.20) (pull_request) Successful in 49s
Tests and linters / Tests (1.21) (pull_request) Successful in 48s
Tests and linters / Tests with -race (pull_request) Successful in 1m9s
Tests and linters / Lint (pull_request) Successful in 1m42s
Tests and linters / Staticcheck (pull_request) Successful in 1m46s
It can be false if the first targets allows operation and the last one
returns NoRuleFound.

Found by @mbiryukova.
Introduced in #86.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-08-20 20:21:38 +03:00