Merge pull request #3096 from gberkes/v3/sonar_return_never_will_be_executed

Clean up 'return' never will be executed.
This commit is contained in:
Ervin Hegedus 2024-02-27 22:25:05 +01:00 committed by GitHub
commit 734646dbf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View File

@ -73,7 +73,7 @@ struct data_ms {
};
static void *process_request(void *data) {
[[noreturn]] static void *process_request(void *data) {
struct data_ms *a = (struct data_ms *)data;
modsecurity::ModSecurity *modsec = a->modsec;
modsecurity::RulesSet *rules = a->rules;
@ -102,8 +102,7 @@ static void *process_request(void *data) {
delete modsecTransaction;
}
pthread_exit(NULL);
return NULL;
pthread_exit(nullptr);
}
@ -165,7 +164,6 @@ class ReadingLogsViaRuleMessage {
delete rules;
delete modsec;
pthread_exit(NULL);
return 0;
}

View File

@ -35,8 +35,5 @@ int main(int argc, char **argv) {
response_headers, response_body, ip, rules);
rlvrm.process();
pthread_exit(NULL);
return 0;
}