diff options
author | JB Vasseur <jvasseur@gmail.com> | 2018-10-19 02:28:44 +0300 |
---|---|---|
committer | JB Vasseur <jvasseur@gmail.com> | 2018-10-19 02:28:44 +0300 |
commit | 192ccaebfc09c29bc62defb5f9a0fc69600600a1 (patch) | |
tree | 5442db10990f07d1c24a5dd17ed14db64be01ff5 /app/finders | |
parent | 9f3408390102c3934e3a1e5f0edafe6f3d1c9862 (diff) |
Disable offense on the appropriate line only !22296
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/applications_finder.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/app/finders/applications_finder.rb b/app/finders/applications_finder.rb index 88b1d17cf19..3ded90f3fd5 100644 --- a/app/finders/applications_finder.rb +++ b/app/finders/applications_finder.rb @@ -7,20 +7,16 @@ class ApplicationsFinder @params = params end - # rubocop: disable CodeReuse/ActiveRecord def execute - applications = Doorkeeper::Application.where(owner_id: nil) + applications = Doorkeeper::Application.where(owner_id: nil) # rubocop: disable CodeReuse/ActiveRecord by_id(applications) end - # rubocop: enable CodeReuse/ActiveRecord private - # rubocop: disable CodeReuse/ActiveRecord def by_id(applications) return applications unless params[:id] - Doorkeeper::Application.find_by(id: params[:id]) + Doorkeeper::Application.find_by(id: params[:id]) # rubocop: disable CodeReuse/ActiveRecord end - # rubocop: enable CodeReuse/ActiveRecord end |