Skip to content

Commit

Permalink
Upgrade Rubocop to 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Jul 24, 2022
1 parent c36b40c commit 585e678
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/public_suffix/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def self.parse(input, private_domains: true)
section = 2

# skip comments
when line.start_with?(comment_token)
when line.start_with?(comment_token) # rubocop:disable Lint/DuplicateBranch
next

else
Expand Down
4 changes: 2 additions & 2 deletions lib/public_suffix/rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def self.build(content, private: false)
# @param private [Boolean]
def initialize(value:, length: nil, private: false)
@value = value.to_s
@length = length || @value.count(DOT) + 1
@length = length || (@value.count(DOT) + 1)
@private = private
end

Expand Down Expand Up @@ -161,7 +161,7 @@ def ==(other)
# @param name [String] the domain name to check
# @return [Boolean]
def match?(name)
# Note: it works because of the assumption there are no
# NOTE: it works because of the assumption there are no
# rules like foo.*.com. If the assumption is incorrect,
# we need to properly walk the input and skip parts according
# to wildcard component.
Expand Down

0 comments on commit 585e678

Please sign in to comment.