mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
remove unneccessary check of len on match_parts
While getting the best match the function _exact_match is called with
the candidate server names as name. Then name.split('.') is called which
can never have a length of 0.
This commit is contained in:
@@ -387,9 +387,6 @@ def _wildcard_match(target_name, name, start):
|
||||
parts.reverse()
|
||||
match_parts.reverse()
|
||||
|
||||
if len(match_parts) == 0:
|
||||
return False
|
||||
|
||||
# The first part must be a wildcard or blank, e.g. '.eff.org'
|
||||
first = match_parts.pop(0)
|
||||
if first != '*' and first != '':
|
||||
|
||||
Reference in New Issue
Block a user