Skip to content

Commit 5ed1fbf

Browse files
style(pre-commit): autofix
1 parent 4babdda commit 5ed1fbf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

system/autoware_mrm_handler/src/mrm_handler/mrm_handler_core.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ void MrmHandler::onOperationModeAvailability(
8888
{
8989
stamp_operation_mode_availability_ = this->now();
9090
operation_mode_availability_ = msg;
91-
const bool skip_emergency_holding_check =
92-
!param_.use_emergency_holding || is_emergency_holding_;
91+
const bool skip_emergency_holding_check = !param_.use_emergency_holding || is_emergency_holding_;
9392

9493
if (skip_emergency_holding_check) {
9594
return;
@@ -102,9 +101,10 @@ void MrmHandler::onOperationModeAvailability(
102101

103102
// If no timestamp is available, the ego autonomous mode just became unavailable and the current
104103
// time is recorded.
105-
stamp_current_operation_mode_become_unavailable_ = (!stamp_current_operation_mode_become_unavailable_.has_value())
106-
? this->now()
107-
: stamp_current_operation_mode_become_unavailable_;
104+
stamp_current_operation_mode_become_unavailable_ =
105+
(!stamp_current_operation_mode_become_unavailable_.has_value())
106+
? this->now()
107+
: stamp_current_operation_mode_become_unavailable_;
108108

109109
// Check if autonomous mode unavailable time is larger than timeout threshold.
110110
const auto emergency_duration =

0 commit comments

Comments
 (0)