mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Move if branch around to avoid creating unnecessary filter chains
This commit is contained in:
@@ -233,11 +233,11 @@ class Ns1Provider(BaseProvider):
|
||||
},
|
||||
)
|
||||
params['filters'] = []
|
||||
if len(params['answers']) > 1:
|
||||
params['filters'].append(
|
||||
{"filter": "shuffle", "config": {}}
|
||||
)
|
||||
if has_country:
|
||||
if len(params['answers']) > 1:
|
||||
params['filters'].append(
|
||||
{"filter": "shuffle", "config": {}}
|
||||
)
|
||||
params['filters'].append(
|
||||
{"filter": "geotarget_country", "config": {}}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user