Simplify code for JSON audit log

This commit is contained in:
Jakub Onderka
2025-04-22 19:31:36 +02:00
parent 01a0615887
commit 37c0de363e
3 changed files with 34 additions and 35 deletions

View File

@@ -311,7 +311,7 @@ class RulesSetProperties {
};
static const char *ruleEngineStateString(RuleEngine i) {
static std::string ruleEngineStateString(RuleEngine i) {
switch (i) {
case DisabledRuleEngine:
return "Disabled";
@@ -322,7 +322,7 @@ class RulesSetProperties {
case PropertyNotSetRuleEngine:
return "PropertyNotSet/DetectionOnly";
}
return NULL;
return std::string{};
}