diff --git a/corsika/detail/modules/thinning/EMThinning.inl b/corsika/detail/modules/thinning/EMThinning.inl
index 29ed5ad46d2268700b505fde6f386782cf06e8bc..1a9982f7974ea4196f0f0d19126714a321791209 100644
--- a/corsika/detail/modules/thinning/EMThinning.inl
+++ b/corsika/detail/modules/thinning/EMThinning.inl
@@ -13,10 +13,11 @@
 
 namespace corsika {
 
-  EMThinning::EMThinning(HEPEnergyType threshold, double maxWeight, bool const eraseParticles)
+  EMThinning::EMThinning(HEPEnergyType threshold, double maxWeight,
+                         bool const eraseParticles)
       : threshold_{threshold}
       , maxWeight_{maxWeight}
-      , eraseParticles_ {eraseParticles} {}
+      , eraseParticles_{eraseParticles} {}
 
   template <typename TStackView>
   void EMThinning::doSecondaries(TStackView& view) {
@@ -79,11 +80,11 @@ namespace corsika {
 
     // erase discared particles in case of multithinning
     if (eraseParticles_) {
-                for (auto& p : view) {
-                    if (auto const w = p.getWeight(); w == 0) { p.erase(); }
-                }
-        } else {
-        return;
+      for (auto& p : view) {
+        if (auto const w = p.getWeight(); w == 0) { p.erase(); }
+      }
+    } else {
+      return;
     }
   }
 
diff --git a/corsika/modules/thinning/EMThinning.hpp b/corsika/modules/thinning/EMThinning.hpp
index a32c05a6345d533217c0b1653b8ecfb6886d5308..3c746194e37cc837bc979352871cb6bf4a1a4a0a 100644
--- a/corsika/modules/thinning/EMThinning.hpp
+++ b/corsika/modules/thinning/EMThinning.hpp
@@ -28,7 +28,8 @@ namespace corsika {
      * @param threshold: thinning applied below this energy
      * @param maxWeight: maximum allowed weight
      */
-    EMThinning(HEPEnergyType threshold, double maxWeight, bool const eraseParticles=true);
+    EMThinning(HEPEnergyType threshold, double maxWeight,
+               bool const eraseParticles = true);
 
     /**
      * Apply thinning to secondaries. Only EM primaries with two EM secondaries are