Skip to content

Commit

Permalink
hound cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Mar 20, 2024
1 parent 25edb3a commit 1b39021
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/subjects/remover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def has_been_talked_about?
focus_id: subject_id,
focus_type: 'Subject'
).any?
rescue StandardError => _
rescue StandardError => _e
false
end

Expand Down
4 changes: 2 additions & 2 deletions spec/workers/subject_removal_worker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
let(:subject_id) { 1 }
let(:feature_name) { "remove_orphan_subjects" }
let(:panoptes_client) { instance_double(Panoptes::Client) }
let(:subject_remover) {described_class.new}
let(:subject_remover) { described_class.new }
let(:remover) { instance_double(Subjects::Remover, panoptes_client: panoptes_client) }

describe 'flipper enabled' do
Expand Down Expand Up @@ -56,6 +56,6 @@ def stub_discussions_request(subject_id)
it 'should not call the orphan remover cleanup when disabled' do
allow(Subjects::Remover).to receive(:new)
subject_remover.perform(subject_id)
expect(remover).to_not receive(:cleanup)
expect(remover).not_to receive(:cleanup)
end
end

0 comments on commit 1b39021

Please sign in to comment.