return "" instead of nil

This commit is contained in:
Aart van Halteren
2013-07-16 23:10:17 +02:00
parent 632c59580b
commit aeb5e8435b
3 changed files with 3 additions and 3 deletions

View File

@@ -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