diff options
author | Riku Isokoski <riksu9000@gmail.com> | 2022-12-18 19:14:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-18 18:14:36 +0100 |
commit | afea7ca0d1d670bdee04cfe80a1d8c36efa4fca0 (patch) | |
tree | f1a4196755f85af4490c44f6b2c8784f9eb48669 /src/components/motion | |
parent | bfedf47d1a8ac6d5df1d0ad4d4071323366d22e8 (diff) |
Update clang-tidy configuration and fix some warnings (#1474)
Don't enable coding conventions from unrelated projects. Only enable
generic checks.
Diffstat (limited to 'src/components/motion')
-rw-r--r-- | src/components/motion/MotionController.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/motion/MotionController.cpp b/src/components/motion/MotionController.cpp index 7dd32127..d93d769b 100644 --- a/src/components/motion/MotionController.cpp +++ b/src/components/motion/MotionController.cpp @@ -26,10 +26,9 @@ bool MotionController::Should_RaiseWake(bool isSleeping) { if (not isSleeping) { if (y <= 0) { return false; - } else { - lastYForWakeUp = 0; - return false; } + lastYForWakeUp = 0; + return false; } if (y >= 0) { |