Skip to content

Commit

Permalink
Merge pull request #8911 from koic/fix_an_error_when_occurring_cop_error
Browse files Browse the repository at this point in the history
Fix an error when ocurring cop error
  • Loading branch information
koic committed Oct 21, 2020
2 parents 4673957 + 98e1021 commit b4873b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rubocop/version.rb
Expand Up @@ -18,6 +18,8 @@ def self.version(debug: false, env: nil)
rubocop_ast_version: RuboCop::AST::Version::STRING,
ruby_engine: RUBY_ENGINE, ruby_version: RUBY_VERSION,
ruby_platform: RUBY_PLATFORM)
return verbose_version unless env

extension_versions = extension_versions(env)
return verbose_version if extension_versions.empty?

Expand Down

0 comments on commit b4873b7

Please sign in to comment.