Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix an error when ocurring cop error
Follow rubocop#8908. This PR fixes the following error when ocurring cop error. ```console % bundle exec rubocop (snip) 1 file inspected, no offenses detected 1 error occurred: An error occurred while Layout/ExtraSpacing cop was inspecting /Users/koic/src/github.com/koic/rubocop-issues/43/example.rb. undefined method `config_store' for nil:NilClass /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/version.rb:35:in `extension_versions' /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/version.rb:21:in `version' /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/cli/command/execute_runner.rb:62:in `display_error_summary' /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/cli/command/execute_runner.rb:27:in `execute_runner' /Users/koic/src/github.com/rubocop-hq/rubocop/lib/rubocop/cli/command/execute_runner.rb:17:in `run' ``` It suppresses unexpected `undefined method `config_store' for nil:NilClass`.
- Loading branch information