style(sonar): fix cpp:S4962 (#4140)

This commit is contained in:
ReenigneArcher 2025-08-08 00:45:53 -04:00 committed by GitHub
commit fc7b9e30c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 119 additions and 119 deletions

View file

@ -155,7 +155,7 @@ namespace nvhttp {
std::string get_arg(const args_t &args, const char *name, const char *default_value = nullptr) {
auto it = args.find(name);
if (it == std::end(args)) {
if (default_value != NULL) {
if (default_value != nullptr) {
return std::string(default_value);
}