diff --git a/lib/crawler_detect/detector.rb b/lib/crawler_detect/detector.rb index d4edc1b..a906b58 100644 --- a/lib/crawler_detect/detector.rb +++ b/lib/crawler_detect/detector.rb @@ -11,9 +11,7 @@ def initialize(user_agent) # @return [true, false] Is User-agent a crawler? def is_crawler? - @is_crawler ||= begin - !completely_exclusion? && matches_crawler_list? - end + @is_crawler ||= !completely_exclusion? && matches_crawler_list? end # @return [String] The detected crawler name from RAW data