return "" instead of nil
This commit is contained in:
@@ -23,7 +23,7 @@ class InSyncState < StatePattern::State
|
||||
# p "##################"
|
||||
reading = handle_frame(frame_lines)
|
||||
p reading
|
||||
return bytes[idx+sync_pattern_length..-1]
|
||||
return bytes[idx+sync_pattern_length..-1] || ""
|
||||
else
|
||||
return bytes
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user