mirror of
https://github.com/django/django.git
synced 2025-04-05 05:56:42 +00:00
Remove unnecessary type check - conversion
This commit is contained in:
parent
2850c2e6ad
commit
ebf7e9a31d
@ -69,11 +69,7 @@ class Command(BaseCommand):
|
||||
)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
# Make sure the prefixes are a list
|
||||
prefixes = options["prefixes"]
|
||||
if prefixes:
|
||||
prefixes = prefixes if isinstance(prefixes, list) else [prefixes]
|
||||
|
||||
url_patterns = get_url_patterns(prefixes=prefixes)
|
||||
|
||||
if not url_patterns:
|
||||
|
Loading…
x
Reference in New Issue
Block a user