From 1d7f9869e8195656c1cf8c502afe341b023064f2 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Fri, 10 Dec 2021 01:16:09 +0900 Subject: [PATCH] Remove a redundant unsafe description Follow up to https://github.com/rubocop/rubocop-performance/pull/262. --- lib/rubocop/cop/performance/detect.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/rubocop/cop/performance/detect.rb b/lib/rubocop/cop/performance/detect.rb index ac413e7cc9..7ad329cddd 100644 --- a/lib/rubocop/cop/performance/detect.rb +++ b/lib/rubocop/cop/performance/detect.rb @@ -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