Skip to content

Commit

Permalink
simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ofir committed Jan 30, 2022
1 parent dc78eef commit 7bc8b08
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,7 @@ function onSessionHeaders(handle, id, cat, flags, headers, sensitiveHeaders) {
}
} else if (cat === NGHTTP2_HCAT_PUSH_RESPONSE) {
event = 'push';
} else if (!endOfStream && status !== undefined && status >= 200) {
event = 'response';
} else if (endOfStream && status !== undefined && status >= 200) {
// cat === NGHTTP2_HCAT_HEADERS
} else if (status !== undefined && status >= 200) {
event = 'response';
} else {
event = endOfStream ? 'trailers' : 'headers';
Expand Down

0 comments on commit 7bc8b08

Please sign in to comment.