Commit bfe9f604 authored by Ing. Jan Trávníček's avatar Ing. Jan Trávníček

clang-tidy: fix repeated switch branches

parent 0631d62a
......@@ -71,11 +71,13 @@ SquareGrid4<TCoordinate, TEdge>::SquareGrid4(TCoordinate height, TCoordinate wid
template<typename TCoordinate, typename TEdge>
bool SquareGrid4<TCoordinate, TEdge>::isValidDirection(SquareGrid4::direction_type direction) const {
switch (direction) {
case SquareGridDirections::north : return true;
case SquareGridDirections::south : return true;
case SquareGridDirections::east : return true;
case SquareGridDirections::west : return true;
default: return false;
case SquareGridDirections::north :
case SquareGridDirections::south :
case SquareGridDirections::east :
case SquareGridDirections::west :
return true;
default:
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment