Weird rubocop refactor

This commit is contained in:
ChillerDragon 2024-01-22 23:21:50 +08:00
parent 936c4d24d0
commit ffcb8c7083

View file

@ -30,11 +30,11 @@ class Packet
return unless flags_compressed return unless flags_compressed
@payload = @huffman.decompress(@payload.unpack('C*')) @payload = @huffman.decompress(@payload.unpack('C*'))
if @payload.nil? @payload = if @payload.nil?
@payload = '' ''
else else
@payload = @payload.pack('C*') @payload.pack('C*')
end end
end end
def annotate_first_row(bytes) def annotate_first_row(bytes)