Replace extra %w verbs with %v in fmt.Errorf

Proprietary

Replace all but the first %w with %v in fmt.Errorf format strings. Multiple error wrapping is invalid in Go < 1.20 and rare in later versions.

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

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