summaryrefslogtreecommitdiff
path: root/django/db/migrations/graph.py
diff options
context:
space:
mode:
authorДилян Палаузов <Dilyan.Palauzov@db.com>2017-11-29 11:54:34 -0500
committerTim Graham <timograham@gmail.com>2017-12-04 10:35:23 -0500
commitd2afa5eb2308e672b6313876856e32e2561b90f3 (patch)
tree2b0700e6502222aca614a29497c327640adf2d64 /django/db/migrations/graph.py
parent3d94ee85005ff658f9419269a6719cbbf7903dab (diff)
downloaddjango-d2afa5eb2308e672b6313876856e32e2561b90f3.tar.gz
Fixed #28860 -- Removed unnecessary len() calls.
Diffstat (limited to 'django/db/migrations/graph.py')
-rw-r--r--django/db/migrations/graph.py2
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]