Skip to content

Commit

Permalink
Merge pull request #1713 from alphagov/dependabot/bundler/rubocop-gov…
Browse files Browse the repository at this point in the history
…uk-3.3.2

Bump rubocop-govuk from 3.3.1 to 3.3.2
  • Loading branch information
barrucadu authored Apr 6, 2020
2 parents 94c19b2 + 1912b62 commit 3873b9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ GEM
mini_portile2 (~> 2.4.0)
null_logger (0.0.1)
parallel (1.19.1)
parser (2.7.0.4)
parser (2.7.0.5)
ast (~> 2.4.0)
phantomjs (2.1.1.0)
plek (3.0.0)
Expand Down Expand Up @@ -257,11 +257,12 @@ GEM
rexml
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-govuk (3.3.1)
rubocop-govuk (3.3.2)
rubocop (= 0.80.1)
rubocop-rails (~> 2)
rubocop-rspec (~> 1.28)
rubocop-rails (2.4.2)
rubocop-rails (2.5.0)
activesupport
rack (>= 1.1)
rubocop (>= 0.72.0)
rubocop-rspec (1.38.1)
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/document_collection_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def group_title_id(title)
end

def documents_hash
@documents_hash ||= Array(content_item["links"]["documents"]).map { |d| [d["content_id"], d] }.to_h
@documents_hash ||= Array(content_item["links"]["documents"]).index_by { |d| d["content_id"] }
end

def reject_withdrawn_documents(group)
Expand Down

0 comments on commit 3873b9b

Please sign in to comment.