valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.94k stars 1.76k forks source link

refactor: do not return error as it is always nil #1759

Closed alexandear closed 7 months ago

alexandear commented 7 months ago

The functions brotliBody, gzipBody, deflateBody, and zstdBody always return a nil error. Therefore, this PR removes error from the return argument of these functions.

erikdubbelboer commented 7 months ago

Lets merge this for now. Thanks!