Skip to content

Commit

Permalink
Remove unneeded conditionals with latest rubocop-ast
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre authored and bbatsov committed May 15, 2020
1 parent 49681a0 commit d21ff7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/rubocop.rb
Expand Up @@ -18,7 +18,7 @@
require_relative 'rubocop/platform'
require_relative 'rubocop/name_similarity'
require_relative 'rubocop/string_interpreter'
require_relative 'rubocop/error' unless RuboCop.const_defined?(:Error)
require_relative 'rubocop/error'
require_relative 'rubocop/warning'

require_relative 'rubocop/cop/util'
Expand Down
6 changes: 3 additions & 3 deletions lib/rubocop/ast_aliases.rb
Expand Up @@ -2,7 +2,7 @@

# These aliases are for compatiblity
module RuboCop
NodePattern ||= AST::NodePattern
ProcessedSource ||= AST::ProcessedSource
Token ||= AST::Token
NodePattern = AST::NodePattern
ProcessedSource = AST::ProcessedSource
Token = AST::Token
end
2 changes: 1 addition & 1 deletion rubocop.gemspec
Expand Up @@ -37,7 +37,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency('parser', '>= 2.7.0.1')
s.add_runtime_dependency('rainbow', '>= 2.2.2', '< 4.0')
s.add_runtime_dependency('rexml')
s.add_runtime_dependency('rubocop-ast', '>= 0.0.2')
s.add_runtime_dependency('rubocop-ast', '>= 0.0.3')
s.add_runtime_dependency('ruby-progressbar', '~> 1.7')
s.add_runtime_dependency('unicode-display_width', '>= 1.4.0', '< 2.0')

Expand Down

0 comments on commit d21ff7d

Please sign in to comment.