diff options
author | Дилян Палаузов <Dilyan.Palauzov@db.com> | 2017-11-29 11:54:34 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-12-04 10:35:23 -0500 |
commit | d2afa5eb2308e672b6313876856e32e2561b90f3 (patch) | |
tree | 2b0700e6502222aca614a29497c327640adf2d64 /django/db/migrations/graph.py | |
parent | 3d94ee85005ff658f9419269a6719cbbf7903dab (diff) | |
download | django-d2afa5eb2308e672b6313876856e32e2561b90f3.tar.gz |
Fixed #28860 -- Removed unnecessary len() calls.
Diffstat (limited to 'django/db/migrations/graph.py')
-rw-r--r-- | django/db/migrations/graph.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/migrations/graph.py b/django/db/migrations/graph.py index 687a9b3905..4bb66b7615 100644 --- a/django/db/migrations/graph.py +++ b/django/db/migrations/graph.py @@ -360,7 +360,7 @@ class MigrationGraph: """ if nodes is None: nodes = list(self.leaf_nodes()) - if len(nodes) == 0: + if not nodes: return ProjectState() if not isinstance(nodes[0], tuple): nodes = [nodes] |