Skip to content

Commit

Permalink
Fix Style/RedundantSelfAssignment cop
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Jul 17, 2024
1 parent 818a702 commit cca711e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/katello/lazy_accessor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def lazy_attributes_options(attr)
def lazy_accessor(*args)
options = args.extract_options!
@lazy_attributes = [] if @lazy_attributes.nil?
@lazy_attributes = @lazy_attributes.concat args
@lazy_attributes.concat args
@lazy_attributes_options ||= {}
fail ArgumentError, "Attribute names must be symbols" if args.any? { |attribute| !attribute.is_a?(Symbol) }
redefined_attr = args.find { |attribute| instance_methods.include?(attribute.to_s) }
Expand Down
2 changes: 1 addition & 1 deletion app/services/katello/pulp3/api/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def self.fetch_from_list
(response.count && (page_opts['offset'] < response.count)) ||
page_opts["offset"] == 0)
response = yield page_opts
results = results.concat(response.results)
results.concat(response.results)
page_opts[:offset] += page_size
end

Expand Down

0 comments on commit cca711e

Please sign in to comment.