Skip to content

Commit 318eebe

Browse files
committed
💚 Address review comments
1 parent 17950bf commit 318eebe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/http/headers/headers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,19 +175,19 @@ func (hs Headers) Append(h *Header) {
175175
}
176176

177177
func (hs Headers) Get(key string) string {
178-
found, h := hs.get(key)
178+
h, found := hs.get(key)
179179
if !found {
180180
return ""
181181
}
182182
return h.Value
183183
}
184184

185185
func (hs Headers) GetHeader(key string) (header *Header) {
186-
_, header = hs.get(key)
186+
header, _ = hs.get(key)
187187
return
188188
}
189189

190-
func (hs Headers) get(key string) (found bool, header *Header) {
190+
func (hs Headers) get(key string) (header *Header, found bool) {
191191
h, found := hs[key]
192192
if !found {
193193
h, found = hs[headers.Normalize(key)] //nolint:misspell
@@ -207,7 +207,7 @@ func (hs Headers) Has(h *Header) bool {
207207
}
208208

209209
func (hs Headers) HasHeader(key string) bool {
210-
found, _ := hs.get(key)
210+
_, found := hs.get(key)
211211
return found
212212
}
213213

0 commit comments

Comments
 (0)