Skip to content

Commit

Permalink
Use chomp instead of chop for lines in TxRx::Telnet
Browse files Browse the repository at this point in the history
  • Loading branch information
vickash committed Jan 24, 2013
1 parent 160c411 commit 2b2649d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dino/tx_rx/telnet.rb
Expand Up @@ -21,7 +21,7 @@ def read
io.waitfor("\n") do |text|
@read_buffer += text
while line = @read_buffer.slice!(/^.*\n/) do
pin, message = line.chop.split(/::/)
pin, message = line.chomp.split(/::/)
pin && message && changed && notify_observers(pin, message)
end
end
Expand Down

0 comments on commit 2b2649d

Please sign in to comment.