Remove redundant defer ctrl.Finish()
ProprietaryRemove defer ctrl.Finish() where the controller was built by gomock.NewController from a *testing.T, *testing.B, *testing.F or testing.TB. NewController registers the finish through Cleanup for any such reporter, so the deferred call only repeats it.
org. openrewrite. golang. migration. RemoveRedundantGomockFinishmod run . --recipe= org. openrewrite. golang. migration. RemoveRedundantGomockFinishInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.