We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fa6c51 commit 2f2ca21Copy full SHA for 2f2ca21
1 file changed
src/nvhttp.cpp
@@ -1252,12 +1252,7 @@ namespace nvhttp {
1252
}
1253
1254
bool has_enabled_clients() {
1255
- for (const auto &named_cert : client_root.named_devices) {
1256
- if (named_cert.enabled) {
1257
- return true;
1258
- }
1259
1260
- return false;
+ return std::ranges::any_of(client_root.named_devices, [](const auto &c) { return c.enabled; });
1261
1262
1263
bool is_client_enabled(const std::string_view cert_pem) {
0 commit comments