Remove unconditional value overwrite

Proprietary

Remove consecutive assignments to the same collection key or index where the first value is immediately overwritten and never read.

org.openrewrite.golang.codequality.RemoveUnconditionalValueOverwrite
mod run . --recipe=org.openrewrite.golang.codequality.RemoveUnconditionalValueOverwrite

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