Skip to content

Commit

Permalink
Fix Style/RedundantAssignment cop
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Aug 13, 2024
1 parent b4f0aff commit bdc92f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/katello/api/v2/activation_keys_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,13 @@ def index_relation

def subscription_index
subs = @activation_key.subscriptions
subscriptions = {
{
:results => subs,
:subtotal => subs.count,
:total => subs.count,
:page => 1,
:per_page => subs.count,
}
subscriptions
end

def find_environment
Expand Down
1 change: 1 addition & 0 deletions app/models/katello/host/content_facet.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Katello
module Host
# rubocop:disable Metrics/ClassLength
class ContentFacet < Katello::Model
audited :associated_with => :host
self.table_name = 'katello_content_facets'
Expand Down

0 comments on commit bdc92f2

Please sign in to comment.