removing superfluous return statements

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@504071 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-02-06 10:47:24 +00:00
parent 42db0f20fe
commit 844f80c67d
1 changed files with 8 additions and 4 deletions

View File

@ -114,21 +114,25 @@ class Solr::Connection
def delete(document_id)
response = send(Solr::Request::Delete.new(:id => document_id))
commit if @autocommit
return response.ok?
response.ok?
end
# delete using a query
def 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 request
def 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