lib/flexirest/connection_manager.rb in flexirest-1.3.14 vs lib/flexirest/connection_manager.rb in flexirest-1.3.15

- old
+ new

@@ -24,10 +24,10 @@ rescue LoadError raise MissingOptionalLibraryError.new("To call '::Flexirest::ConnectionManager.in_parallel' you must include the gem 'Typhoeus' in your Gemfile.") end session = ConnectionManager.get_connection(base_url).session session.in_parallel do - yield + yield if block_given? end end end