Fixes for clang-tidy-9
[alexxy/gromacs.git] / src / gromacs / gmxana / anadih.cpp
index a015a329b8ef12d36a8ff9c92c9820f3ea0ddad7..3a3a952f312d2fe0d68ae31e6e6c7ae50f6c57e8 100644 (file)
@@ -724,11 +724,7 @@ static real calc_fraction(const real angles[], int nangles)
         {
             trans += 1.0;
         }
-        else if (angle > 270 && angle < 330)
-        {
-            gauche += 1.0;
-        }
-        else if (angle < 90 && angle > 30)
+        else if ((angle > 270 && angle < 330) || (angle < 90 && angle > 30))
         {
             gauche += 1.0;
         }