refactor: remove error shadowing
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 6m13s

This commit is contained in:
2025-12-06 23:47:02 +07:00
parent 03d3c8e4fb
commit 8c8fdf251d
4 changed files with 15 additions and 32 deletions

View File

@ -4,7 +4,6 @@ import (
"bufio"
"bytes"
"fmt"
"io"
"strings"
)
@ -28,8 +27,7 @@ type RequestHeaderFactory struct {
headers map[string]string
}
func NewRequestHeaderFactory(r io.Reader) (*RequestHeaderFactory, error) {
br := bufio.NewReader(r)
func NewRequestHeaderFactory(br *bufio.Reader) (*RequestHeaderFactory, error) {
header := &RequestHeaderFactory{
headers: make(map[string]string),
}