Skip to content

Commit

Permalink
Merge pull request #306 from Earlopain/remove-old-rubocop-workaround
Browse files Browse the repository at this point in the history
Remove a workaround for older RuboCop versions
  • Loading branch information
koic committed Mar 8, 2024
2 parents b73940d + 7c0b300 commit 0a293bf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/rubocop/minitest/assert_offense.rb
Expand Up @@ -187,14 +187,8 @@ def parse_source!(source, file = nil)
end

processed_source = RuboCop::ProcessedSource.new(source, ruby_version, file, parser_engine: parser_engine)

# Follow up https://github.com/rubocop/rubocop/pull/10987.
# When support for RuboCop 1.37.1 ends, this condition can be removed.
if processed_source.respond_to?(:config) && processed_source.respond_to?(:registry)
processed_source.config = configuration
processed_source.registry = registry
end

processed_source.config = configuration
processed_source.registry = registry
processed_source
end

Expand Down

0 comments on commit 0a293bf

Please sign in to comment.