Skip to content

Commit

Permalink
Satisfy rubocop (do use save nav)
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Jun 10, 2024
1 parent 148ff92 commit 75cf82f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/http/2/stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,9 @@ def process_priority(frame)
def end_stream?(frame)
case frame[:type]
when :data, :headers, :continuation
frame[:flags] && frame[:flags].include?(:end_stream)
return false unless frame[:flags]

frame[:flags].include?(:end_stream)
else false
end
end
Expand Down

0 comments on commit 75cf82f

Please sign in to comment.