Skip to content

Commit

Permalink
new cops at work!
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed May 10, 2024
1 parent e21593d commit 43ff1f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ def recent_books count

results = ActiveRecord::Base.connection.execute(sql)

book_ids = []
results.each do |row|
book_ids << row.first.to_i
book_ids = results.map do |row|
row.first.to_i
end

# map to objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ def recent_cases count

results = ActiveRecord::Base.connection.execute(sql)

case_ids = []
results.each do |row|
case_ids << row.first.to_i
case_ids = results.map do |row|
row.first.to_i
end

# map to objects
Expand Down
1 change: 1 addition & 0 deletions config/initializers/permissions_policy.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# Define an application-wide HTTP permissions policy. For further
# information see https://developers.google.com/web/updates/2018/06/feature-policy
#
Expand Down

0 comments on commit 43ff1f2

Please sign in to comment.