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 Jul 30, 2024
1 parent eec51d6 commit b955f88
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 b955f88

Please sign in to comment.