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
SerhiiMisiura committed Jun 29, 2019
1 parent 2647d44 commit 202c097
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 202c097

Please sign in to comment.