Skip to content

Commit 942f538

Browse files
committed
lint
1 parent 7f8c99d commit 942f538

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/motor-control/core/stepper_motor/motor_interrupt_handler.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ class MotorInterruptHandler {
121121
if ((buffered_move.start_encoder_position -
122122
hardware.get_encoder_pulses()) > 10) {
123123
return;
124-
} else {
125-
cancel_and_clear_moves(can::ids::ErrorCode::collision_detected);
126124
}
125+
cancel_and_clear_moves(can::ids::ErrorCode::collision_detected);
127126
}
128127

129128
if (buffered_move.check_stop_condition(MoveStopCondition::stall)) {

0 commit comments

Comments
 (0)