Skip to content

Commit b69b24e

Browse files
authoredJun 23, 2023
1 parent 43baad2 commit b69b24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/dalli/protocol/binary/response_processor.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def unpack_response_body(resp_header, body, parse_as_stored_value)
5252
bitflags = extra_len.positive? ? body.unpack1('N') : 0x0
5353
key = body.byteslice(extra_len, key_len).force_encoding(Encoding::UTF_8) if key_len.positive?
5454
value = body.byteslice((extra_len + key_len)..-1)
55-
value = parse_as_stored_value ? @value_marshaller.retrieve(value, bitflags) : value
55+
value = @value_marshaller.retrieve(value, bitflags) if parse_as_stored_value
5656
[key, value]
5757
end
5858

0 commit comments

Comments
 (0)
Please sign in to comment.