Weird rubocop refactor
This commit is contained in:
parent
936c4d24d0
commit
ffcb8c7083
|
@ -30,11 +30,11 @@ class Packet
|
|||
return unless flags_compressed
|
||||
|
||||
@payload = @huffman.decompress(@payload.unpack('C*'))
|
||||
if @payload.nil?
|
||||
@payload = ''
|
||||
else
|
||||
@payload = @payload.pack('C*')
|
||||
end
|
||||
@payload = if @payload.nil?
|
||||
''
|
||||
else
|
||||
@payload.pack('C*')
|
||||
end
|
||||
end
|
||||
|
||||
def annotate_first_row(bytes)
|
||||
|
|
Loading…
Reference in a new issue