From 38e35d5af90fb01f2424efda6d849e9e092a0c57 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
 <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Fri, 6 Dec 2024 13:00:03 +0000
Subject: [PATCH] style(pre-commit): autofix

---
 .../control_cmd_switcher.cpp                   | 18 ++++++++----------
 .../control_cmd_switcher.hpp                   | 15 +++++----------
 2 files changed, 13 insertions(+), 20 deletions(-)

diff --git a/system/control_cmd_switcher/src/control_cmd_switcher/control_cmd_switcher.cpp b/system/control_cmd_switcher/src/control_cmd_switcher/control_cmd_switcher.cpp
index c7405c34f88ba..921988ff33455 100644
--- a/system/control_cmd_switcher/src/control_cmd_switcher/control_cmd_switcher.cpp
+++ b/system/control_cmd_switcher/src/control_cmd_switcher/control_cmd_switcher.cpp
@@ -22,15 +22,13 @@ ControlCmdSwitcher::ControlCmdSwitcher(const rclcpp::NodeOptions & node_options)
 : Node("control_cmd_switcher", node_options)
 {
   // Subscriber
-  sub_main_control_cmd_ =
-    create_subscription<autoware_control_msgs::msg::Control>(
-      "~/input/main/control_cmd", rclcpp::QoS{10},
-      std::bind(&ControlCmdSwitcher::onMainControlCmd, this, std::placeholders::_1));
+  sub_main_control_cmd_ = create_subscription<autoware_control_msgs::msg::Control>(
+    "~/input/main/control_cmd", rclcpp::QoS{10},
+    std::bind(&ControlCmdSwitcher::onMainControlCmd, this, std::placeholders::_1));
 
-  sub_sub_control_cmd_ =
-    create_subscription<autoware_control_msgs::msg::Control>(
-      "~/input/sub/control_cmd", rclcpp::QoS{10},
-      std::bind(&ControlCmdSwitcher::onSubControlCmd, this, std::placeholders::_1));
+  sub_sub_control_cmd_ = create_subscription<autoware_control_msgs::msg::Control>(
+    "~/input/sub/control_cmd", rclcpp::QoS{10},
+    std::bind(&ControlCmdSwitcher::onSubControlCmd, this, std::placeholders::_1));
 
   sub_election_status_main_ = create_subscription<tier4_system_msgs::msg::ElectionStatus>(
     "~/input/election/status/main", rclcpp::QoS{10},
@@ -41,8 +39,8 @@ ControlCmdSwitcher::ControlCmdSwitcher(const rclcpp::NodeOptions & node_options)
     std::bind(&ControlCmdSwitcher::onElectionStatus, this, std::placeholders::_1));
 
   // Publisher
-  pub_control_cmd_ = create_publisher<autoware_control_msgs::msg::Control>(
-    "~/output/control_cmd", rclcpp::QoS{1});
+  pub_control_cmd_ =
+    create_publisher<autoware_control_msgs::msg::Control>("~/output/control_cmd", rclcpp::QoS{1});
 
   // Initialize
   use_main_control_cmd_ = true;
diff --git a/system/control_cmd_switcher/src/control_cmd_switcher/control_cmd_switcher.hpp b/system/control_cmd_switcher/src/control_cmd_switcher/control_cmd_switcher.hpp
index ea118f3d869bb..a730c6cc630ac 100644
--- a/system/control_cmd_switcher/src/control_cmd_switcher/control_cmd_switcher.hpp
+++ b/system/control_cmd_switcher/src/control_cmd_switcher/control_cmd_switcher.hpp
@@ -34,21 +34,16 @@ class ControlCmdSwitcher : public rclcpp::Node
 
 private:
   // Subscribers
-  rclcpp::Subscription<autoware_control_msgs::msg::Control>::SharedPtr
-    sub_main_control_cmd_;
-  rclcpp::Subscription<autoware_control_msgs::msg::Control>::SharedPtr
-    sub_sub_control_cmd_;
+  rclcpp::Subscription<autoware_control_msgs::msg::Control>::SharedPtr sub_main_control_cmd_;
+  rclcpp::Subscription<autoware_control_msgs::msg::Control>::SharedPtr sub_sub_control_cmd_;
   rclcpp::Subscription<tier4_system_msgs::msg::ElectionStatus>::SharedPtr sub_election_status_main_;
   rclcpp::Subscription<tier4_system_msgs::msg::ElectionStatus>::SharedPtr sub_election_status_sub_;
-  void onMainControlCmd(
-    const autoware_control_msgs::msg::Control::ConstSharedPtr msg);
-  void onSubControlCmd(
-    const autoware_control_msgs::msg::Control::ConstSharedPtr msg);
+  void onMainControlCmd(const autoware_control_msgs::msg::Control::ConstSharedPtr msg);
+  void onSubControlCmd(const autoware_control_msgs::msg::Control::ConstSharedPtr msg);
   void onElectionStatus(const tier4_system_msgs::msg::ElectionStatus::ConstSharedPtr msg);
 
   // Publisher
-  rclcpp::Publisher<autoware_control_msgs::msg::Control>::SharedPtr
-    pub_control_cmd_;
+  rclcpp::Publisher<autoware_control_msgs::msg::Control>::SharedPtr pub_control_cmd_;
 
   std::atomic<bool> use_main_control_cmd_;
 };