From 1b390218d43974cd857ee54b0169967aa7470085 Mon Sep 17 00:00:00 2001 From: tooyosi Date: Wed, 20 Mar 2024 17:11:25 +0000 Subject: [PATCH] hound cleanups --- lib/subjects/remover.rb | 2 +- spec/workers/subject_removal_worker_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/subjects/remover.rb b/lib/subjects/remover.rb index 3cdf1e818..55aab15fe 100644 --- a/lib/subjects/remover.rb +++ b/lib/subjects/remover.rb @@ -61,7 +61,7 @@ def has_been_talked_about? focus_id: subject_id, focus_type: 'Subject' ).any? - rescue StandardError => _ + rescue StandardError => _e false end diff --git a/spec/workers/subject_removal_worker_spec.rb b/spec/workers/subject_removal_worker_spec.rb index 630ecfa20..82721052d 100644 --- a/spec/workers/subject_removal_worker_spec.rb +++ b/spec/workers/subject_removal_worker_spec.rb @@ -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 @@ -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