Skip to content

Commit

Permalink
remove local var
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley committed Aug 16, 2023
1 parent 340a371 commit 0e6d109
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/transport/http2_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1505,11 +1505,7 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {
return
}

isHeader := false

if !endStream {
// HEADERS frame block carries a Response-Headers.
isHeader = true
// If headerChan hasn't been closed yet (expected, given we checked it
// above, but something else could have potentially closed the whole
// stream).
Expand All @@ -1527,7 +1523,7 @@ func (t *http2Client) operateHeaders(frame *http2.MetaHeadersFrame) {
}

for _, sh := range t.statsHandlers {
if isHeader {
if !endStream {
inHeader := &stats.InHeader{
Client: true,
WireLength: int(frame.Header().Length),
Expand Down

0 comments on commit 0e6d109

Please sign in to comment.