Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leesheppard committed Dec 16, 2023
1 parent 1194508 commit 5962d39
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ AllCops:
- 'node_modules/**/*'
DisplayCopNames: true
TargetRubyVersion: 3.0
NewCops: disable

Layout/LineLength:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion app/lib/mailing_list/create_webhooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class MailingList::CreateWebhooks
def self.call
MailingList.all.find_each do |list|
MailingList.all.find do |list|
new(list).call
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/lib/mailing_list/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class MailingList::Setup
def self.call(user)
MailingList.all.find_each do |list|
MailingList.all.find do |list|
new(user, list).call
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/lib/mailing_list/sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class MailingList::Sync
def self.call
MailingList.all.find_each do |list|
MailingList.all.find do |list|
new(list).call
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/users.rake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace :users do
task unsubscribe_spammers: :environment do
User.unconfirmed.subscribed_to_any_list.each do |user|
MailingList.all.find_each do |list|
MailingList.all.find do |list|
next unless user.mailing_lists[list.name] == "true"

begin
Expand Down

0 comments on commit 5962d39

Please sign in to comment.