Skip to content

Commit 794b77c

Browse files
committed
og fix of linting typecast error
1 parent 6f3c7a5 commit 794b77c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

diff_drive_controller/src/diff_drive_controller.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,8 @@ controller_interface::CallbackReturn DiffDriveController::configure_side(
705705

706706
bool DiffDriveController::on_set_chained_mode(bool chained_mode)
707707
{
708-
// Always accept switch to/from chained mode
709-
(void)chained_mode;
710-
return true;
708+
// Always accept switch to/from chained mode (without linting type-cast error)
709+
return true || chained_mode;
711710
}
712711

713712
std::vector<hardware_interface::CommandInterface>

0 commit comments

Comments
 (0)