Remove empty foreach body

Proprietary

Remove foreach loops with empty bodies, which iterate without effect.

OpenRewrite.Recipes.CSharp.CodeQuality.Redundancy.RemoveEmptyForEachBody
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Redundancy.RemoveEmptyForEachBody

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.