Skip to content

Commit

Permalink
rubocop update
Browse files Browse the repository at this point in the history
  • Loading branch information
loadkpi committed Feb 25, 2024
1 parent a2cbeb6 commit 7470ae0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/crawler_detect/detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7470ae0

Please sign in to comment.