Add a final else to if ... else if chains
ProprietaryAdds an else clause that does nothing, with a comment saying so, to an if ... else if chain that has none. Nothing ran before when no condition held, and nothing runs now, so behavior is unchanged. A lone if is not a chain and is left alone, as is a chain with no safe place for the clause. Test sources are not changed.
io. moderne. staticanalysis. AddElseToIfElseIfChainmod run . --recipe= io. moderne. staticanalysis. AddElseToIfElseIfChainInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.