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 25, 2024
1 parent 5958b2c commit 2d32117
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 2d32117

Please sign in to comment.