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 22, 2024
1 parent beb0a9b commit fe30aad
Showing 1 changed file with 1 addition 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

0 comments on commit fe30aad

Please sign in to comment.