mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 18:30:35 +03:00
Cosmetics: reducing the compilation warnings
This commit is contained in:
@@ -122,13 +122,10 @@ bool SetVar::evaluate(Rule *rule, Transaction *transm_parser_payload) {
|
||||
value = 0;
|
||||
}
|
||||
|
||||
switch (m_operation) {
|
||||
case sumAndSetOperation:
|
||||
targetValue = std::to_string(value + pre);
|
||||
break;
|
||||
case substractAndSetOperation:
|
||||
targetValue = std::to_string(value - pre);
|
||||
break;
|
||||
if (m_operation == sumAndSetOperation) {
|
||||
targetValue = std::to_string(value + pre);
|
||||
} else if (m_operation == substractAndSetOperation) {
|
||||
targetValue = std::to_string(value - pre);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user