lib/blather/client/client.rb in blather-0.4.4 vs lib/blather/client/client.rb in blather-0.4.5
- old
+ new
@@ -165,11 +165,10 @@
self
end
protected
def stream
- raise 'Stream not ready!' unless @stream
- @stream
+ @stream || raise('Stream not ready!')
end
def check_handler(type, guards)
Blather.logger.warn "Handler for type \"#{type}\" will never be called as it's not a registered type" unless current_handlers.include?(type)
check_guards guards