From 6f1e1322863abb1f4a98d3185228f9b40b1be2c8 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sun, 27 Oct 2019 20:24:38 -0400 Subject: [PATCH] clang-tidy: enable readability-redundant-control-flow and fix --- .clang-tidy | 1 - src/modules/rover_pos_control/RoverPositionControl.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 48135ea197..ac600c511c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -94,7 +94,6 @@ Checks: '*, -readability-named-parameter, -readability-non-const-parameter, -readability-redundant-declaration, - -readability-redundant-control-flow, -readability-static-accessed-through-instance, -readability-static-definition-in-anonymous-namespace, ' diff --git a/src/modules/rover_pos_control/RoverPositionControl.cpp b/src/modules/rover_pos_control/RoverPositionControl.cpp index 80b0260c06..73aa7c5577 100644 --- a/src/modules/rover_pos_control/RoverPositionControl.cpp +++ b/src/modules/rover_pos_control/RoverPositionControl.cpp @@ -302,9 +302,6 @@ RoverPositionControl::control_velocity(const matrix::Vector3f ¤t_velocity, _act_controls.control[actuator_controls_s::INDEX_YAW] = 0.0f; } - - return; - } void