Skip to content

Commit

Permalink
Remove unnecessary code to suppress warnings
Browse files Browse the repository at this point in the history
Rails cops has been removed from RuboCop 0.72.
https://github.com/rubocop-hq/rubocop/releases/tag/v0.72.0

As a result of verification, the code to guard a warning is not
necessary already.

Related PR ... rubocop/rubocop-rails#83
  • Loading branch information
koic committed Jun 29, 2019
1 parent 8b19ab8 commit dc3b1b8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/rubocop/cop/performance_cops.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# frozen_string_literal: true

module RuboCop
# RuboCop included the performance cops directly before version 1.0.0.
# We can remove them to avoid warnings about redefining constants.
module Cop
remove_const('Performance') if const_defined?('Performance')
end
end

require_relative 'performance/caller'
require_relative 'performance/case_when_splat'
require_relative 'performance/casecmp'
Expand Down

0 comments on commit dc3b1b8

Please sign in to comment.