mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
elif trivial improvement
This commit is contained in:
@@ -137,8 +137,7 @@ class NameAllowlistFilter(_NameBaseFilter):
|
||||
name = record.name
|
||||
if name in self.exact:
|
||||
continue
|
||||
|
||||
if any(r.search(name) for r in self.regex):
|
||||
elif any(r.search(name) for r in self.regex):
|
||||
continue
|
||||
|
||||
zone.remove_record(record)
|
||||
|
||||
Reference in New Issue
Block a user