Skip to content

Commit

Permalink
Fix SonarQube issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 22, 2023
1 parent fe91b35 commit b7da902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/controllers/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ shared_ptr<AbstractController> 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<shared_ptr<PrimaryDevice>> ControllerManager::GetAllDevices() const
Expand Down

0 comments on commit b7da902

Please sign in to comment.