Skip to content

Commit

Permalink
Merge pull request #86 from rogy-AquaLab/clang-tidy-rein0925
Browse files Browse the repository at this point in the history
Clang tidy rein0925
  • Loading branch information
H1rono authored Mar 31, 2024
2 parents e29b389 + b6f4b78 commit afaef05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/schneider_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,15 @@ void Schneider::rotate() {
}

void Schneider::led(int num) {
// 3つの連続した明示的なブランチがあるといわれたがそんなことない
// NOLINTBEGIN
switch (num) {
case 1: led1 = !led1; break;
case 2: led2 = !led2; break;
case 3: led3 = !led3; break;
default: break;
}
// NOLINTEND
}

} // namespace omniboat

0 comments on commit afaef05

Please sign in to comment.