Skip to content

Commit

Permalink
Fix lint (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
petergoldstein authored Jun 23, 2023
1 parent 43baad2 commit b69b24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dalli/protocol/binary/response_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def unpack_response_body(resp_header, body, parse_as_stored_value)
bitflags = extra_len.positive? ? body.unpack1('N') : 0x0
key = body.byteslice(extra_len, key_len).force_encoding(Encoding::UTF_8) if key_len.positive?
value = body.byteslice((extra_len + key_len)..-1)
value = parse_as_stored_value ? @value_marshaller.retrieve(value, bitflags) : value
value = @value_marshaller.retrieve(value, bitflags) if parse_as_stored_value
[key, value]
end

Expand Down

0 comments on commit b69b24e

Please sign in to comment.