lib/http/2/framer.rb in http-2-0.9.1 vs lib/http/2/framer.rb in http-2-0.10.0

- old
+ new

@@ -357,18 +357,18 @@ frame[:payload] = payload.read(frame[:length]) when :headers if frame[:flags].include? :priority e_sd = payload.read_uint32 frame[:stream_dependency] = e_sd & RBIT - frame[:exclusive] = (e_sd & EBIT) != 0 # rubocop:disable Style/NumericPredicate + frame[:exclusive] = (e_sd & EBIT) != 0 frame[:weight] = payload.getbyte + 1 end frame[:payload] = payload.read(frame[:length]) when :priority e_sd = payload.read_uint32 frame[:stream_dependency] = e_sd & RBIT - frame[:exclusive] = (e_sd & EBIT) != 0 # rubocop:disable Style/NumericPredicate + frame[:exclusive] = (e_sd & EBIT) != 0 frame[:weight] = payload.getbyte + 1 when :rst_stream frame[:error] = unpack_error payload.read_uint32 when :settings @@ -440,6 +440,7 @@ def unpack_error(e) name, _ = DEFINED_ERRORS.find { |_name, v| v == e } name || error end end + # rubocop:enable ClassLength end