Skip to content

Commit

Permalink
Merge pull request #65 from koic/remove_unnecessary_code_to_suppress_…
Browse files Browse the repository at this point in the history
…warnings

Remove unnecessary code to suppress warnings
  • Loading branch information
koic authored Jul 2, 2019
2 parents 8b19ab8 + dc3b1b8 commit ec90eb8
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 ec90eb8

Please sign in to comment.