diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-06-04 14:53:38 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-06-04 14:53:38 +0100 |
commit | 26dbf38319f22de55d6c8bfbf3376df0dbb297c2 (patch) | |
tree | e691cb9ea88a2246ff8ded443d4b00bdced38a0a /lib/xapian_queries.rb | |
parent | e5963622d92cb3c901ad9d5f2c4d7aed254a5687 (diff) | |
parent | 0024aaef7547bb1657b51572f1c072e10db2d1e4 (diff) |
Merge branch '2288-public-body-page-performance' into develop
Diffstat (limited to 'lib/xapian_queries.rb')
-rw-r--r-- | lib/xapian_queries.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xapian_queries.rb b/lib/xapian_queries.rb index 5c02ba788..dbb17f592 100644 --- a/lib/xapian_queries.rb +++ b/lib/xapian_queries.rb @@ -77,10 +77,10 @@ module XapianQueries end def make_query_from_params(params) - query = params[:query] || "" if query.nil? + query = params.fetch(:query) { '' } query += get_date_range_from_params(params) query += get_request_variety_from_params(params) query += get_status_from_params(params) - return query + query end end |