Skip to content

Commit

Permalink
chore: use empty? instead of blank? for array
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 8, 2022
1 parent b81b5e9 commit 62debcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/index/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def self.head_pact_publications(options = {})
))

# Return early if there is no pacticipant matches the input name
return base.paginate(options[:page_number] || DEFAULT_PAGE_NUMBER, options[:page_size] || DEFAULT_PAGE_SIZE) if pacticipant_ids.blank?
return base.paginate(options[:page_number] || DEFAULT_PAGE_NUMBER, options[:page_size] || DEFAULT_PAGE_SIZE) if pacticipant_ids.empty?
end

ids_query = if options[:view]
Expand Down

0 comments on commit 62debcd

Please sign in to comment.