Skip to content

Commit

Permalink
Rename have_records? to has_records?
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Dec 5, 2013
1 parent 6ef3988 commit 0eb7149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/plugin/distributor/distributed_search_plan.rb
Expand Up @@ -148,7 +148,7 @@ def calculate_offset_and_limit!
end

output_offset = @output["offset"] || 0
@output["offset"] = 0 if have_records?
@output["offset"] = 0 if has_records?

final_offset = sort_offset + output_offset

Expand Down Expand Up @@ -186,7 +186,7 @@ def calculate_offset_and_limit!
@records_limit = final_limit
end

def have_records?
def has_records?
@output["elements"].include?("records")
end

Expand Down

0 comments on commit 0eb7149

Please sign in to comment.