Check Close() error

Proprietary

Replace bare f.Close() with _ = f.Close() to explicitly mark the discarded error.

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

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