From b7da9021d3974158f366b6c16c8a3f091cdf3b18 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Fri, 22 Sep 2023 20:00:25 +0200 Subject: [PATCH] Fix SonarQube issue --- cpp/controllers/controller_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/controllers/controller_manager.cpp b/cpp/controllers/controller_manager.cpp index 0a4d0a83c8..02cf4d8adc 100644 --- a/cpp/controllers/controller_manager.cpp +++ b/cpp/controllers/controller_manager.cpp @@ -50,7 +50,7 @@ shared_ptr ControllerManager::FindController(int target_id) } bool ControllerManager::HasController(int target_id) const { - return controllers.find(target_id) != controllers.end(); + return controllers.contains(target_id); } unordered_set> ControllerManager::GetAllDevices() const