PostReview does strings.NewReader(string(data)) which copies []byte → string → io.Reader. Extra allocation.
Fix
Use bytes.NewReader(data) directly. Small optimization but correct.
## Problem
`PostReview` does `strings.NewReader(string(data))` which copies `[]byte` → `string` → `io.Reader`. Extra allocation.
## Fix
Use `bytes.NewReader(data)` directly. Small optimization but correct.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
PostReviewdoesstrings.NewReader(string(data))which copies[]byte→string→io.Reader. Extra allocation.Fix
Use
bytes.NewReader(data)directly. Small optimization but correct.