Skip to content

Commit

Permalink
Remove a redundant unsafe description
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiMisiura committed Dec 9, 2021
1 parent 4873f7c commit e55c8df
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/rubocop/cop/performance/detect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ module Performance
# [].detect { |item| true }
# [].reverse.detect { |item| true }
#
# `ActiveRecord` compatibility:
# `ActiveRecord` does not implement a `detect` method and `find` has its
# own meaning. Correcting ActiveRecord methods with this cop should be
# considered unsafe.
class Detect < Base
extend AutoCorrector

Expand Down

0 comments on commit e55c8df

Please sign in to comment.