Simplify bytes.NewBuffer roundtrip

Proprietary

Replace bytes.NewBuffer(b).Bytes() with b since wrapping a byte slice in a buffer only to extract it is a no-op.

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

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