Apache Solr open-source search software
removing superfluous return statements
Erik Hatcher844f80c67d95
diff --git a/client/ruby/solrb/lib/solr/connection.rb b/client/ruby/solrb/lib/solr/connection.rbindex 1e7b5b58720..8af9d780435 100755--- a/client/ruby/solrb/lib/solr/connection.rb+++ b/client/ruby/solrb/lib/solr/connection.rb@@ -114,21 +114,25 @@ class Solr::Connectiondef delete(document_id)response = send(Solr::Request::Delete.new(:id => document_id))commit if @autocommit- return response.ok?+ response.ok?end# delete using a querydef delete_by_query(query)response = send(Solr::Request::Delete.new(:query => query))commit if @autocommit- return response.ok?+ response.ok?end-++ def info+ send(Solr::Request::IndexInfo.new)+ end+# send a given Solr::Request and return a RubyResponse or XmlResponse# depending on the type of requestdef send(request)data = post(request)- return Solr::Response::Base.make_response(request, data)+ Solr::Response::Base.make_response(request, data)end# send the http post request to solr; for convenience there are shortcuts