mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 00:02:14 -04: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:
parent
74b677248d
commit
95cc031339
1 changed files with 0 additions and 3 deletions
|
|
@ -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 != '':
|
||||
|
|
|
|||
Loading…
Reference in a new issue