app/cyclid/log_buffer.rb in cyclid-0.2.1 vs app/cyclid/log_buffer.rb in cyclid-0.2.2
- old
+ new
@@ -85,10 +85,10 @@
@job_record.log = @buffer.string
@job_record.save!
end
# Write to web socket
- @websocket.write data if @websocket
+ @websocket&.write data
end
# Non-destructively read any new data from the buffer
def read(length = nil)
@buffer.read(length)