lib/twitch/bot/adapter/irc.rb in twitch-bot-2.1.0 vs lib/twitch/bot/adapter/irc.rb in twitch-bot-2.1.1
- old
+ new
@@ -73,9 +73,10 @@
data
end
# Acceptable :reek:NilCheck
def socket_read_next
+ line = ""
loop do
line = socket.gets&.chomp
break unless line.nil? || line.empty?
end
line