Merge if with parent if
ProprietaryMerge if (a) { if (b) { ... } } into if (a && b) { ... } when the outer if body contains only a single nested if without else.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. MergeIfWithParentIfmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. MergeIfWithParentIfInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.